Theoretical question

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

miked

Theoretical question

Post by miked »

Can anyone think of a way that a rectangular, non-shape, non-background layer (in other words a normal artlayer) could be translated so that the perimeter pixel opacity on any side is anything other than 100%? I know you can generate translucent pixels by resizing a layer, but can you do so by translating?

Or how about this: is it possible to

1. select all and copy a flattened image, and
2. paste the image into a second, larger document

in such a way that the perimeter pixels would not be 100% opacity?

...Mike

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

Theoretical question

Post by Mike Hale »

A picture is worth a thousand works and this might need a screen shot as I am not sure what you are asking.

If you translate( move ) a layer all pixels that are not 0% opacity are moved. So if the layer has translucent edge pixels they get moved along with the 100% pixels. If you move the layer so that an edge is beyond the document bounds the translucent may not show for that edge but they are still in the layer.
miked

Theoretical question

Post by miked »

For discussion purposes, lets assume that we have a 10px x 10px document. The background layer is white. A layer called "square" consists of a 4x4 black square in the middle of the white area. Each of the 16 pixels that make up this black area are 100% black and 100% opaque.

The question is: is there a way to shift the Square layer using the translate() function so that sub-pixel rendering is put into effect? So that, instead of each of Square's 16 pixels being 100% opaque, the perimeter pixels are translucent?

In other words, using only translate(), is it possible to turn this

into this


...Mike
pfaffenbichler

Theoretical question

Post by pfaffenbichler »

I think just recently there was another thread where it was stated that translate does round to full pixels, so I think you cannot do it with translate.