![]() |
Adobe Photoshop SDK |
|
PSScaling Struct ReferenceProvide a scaling through a rectangle in source space and a corresponding rectangle in destination space.
More...
|
Data Fields | |
VRect | sourceRect |
The source rectangle for scaling. | |
VRect | destinationRect |
The destination rectangle for scaling. |
Equal rectangles result in a direct, unscaled, mapping. Unequal rectangles can be used to up- or down-sample.
For example, if sourceRect
is a 100-pixel square in source space:
sourceRect.top = 0; sourceRect.left = 0; sourceRect.bottom = 100; sourceRect.right = 100;
destinationRect.top = 0; destinationRect.left = 0; destinationRect.bottom = 50; destinationRect.right = 50;
The source rectangle for scaling.
The destination rectangle for scaling.