Class RenderingSizeCalculator
Inheritance
System.Object
RenderingSizeCalculator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class RenderingSizeCalculator
Constructors
RenderingSizeCalculator()
Declaration
public RenderingSizeCalculator()
Methods
CalculatePixelBounds(RectangleF, Single)
Declaration
public static RectangleF CalculatePixelBounds(RectangleF bounds, float dpi)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
bounds |
|
| System.Single |
dpi |
|
Returns
| Type |
Description |
| System.Drawing.RectangleF |
|
Declaration
public static float CalculateProofImageDpi(ref Size? maxSize, ref ResizeMode? resizeMode, RectangleF renderBounds, bool isThumbnail)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Drawing.Size> |
maxSize |
|
| System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> |
resizeMode |
|
| System.Drawing.RectangleF |
renderBounds |
|
| System.Boolean |
isThumbnail |
|
Returns
| Type |
Description |
| System.Single |
|
Declaration
public static float CalculateProofImageDpi(ref Size? maxSize, ref ResizeMode? resizeMode, RectangleF renderBounds, bool isThumbnail, out Size targetSize)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Drawing.Size> |
maxSize |
|
| System.Nullable<Aurigma.GraphicsMill.Transforms.ResizeMode> |
resizeMode |
|
| System.Drawing.RectangleF |
renderBounds |
|
| System.Boolean |
isThumbnail |
|
| System.Drawing.Size |
targetSize |
|
Returns
| Type |
Description |
| System.Single |
|
GetAdjustedSurfaceSize(RectangleF, Size, Single)
Declaration
public static SizeF GetAdjustedSurfaceSize(RectangleF renderBounds, Size targetSize, float scale)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
renderBounds |
|
| System.Drawing.Size |
targetSize |
|
| System.Single |
scale |
|
Returns
| Type |
Description |
| System.Drawing.SizeF |
|
GetFitDpi(RectangleF, Single, Size, out Size)
Declaration
public static float GetFitDpi(RectangleF renderBounds, float renderDpi, Size maxSize, out Size targetSize)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
renderBounds |
|
| System.Single |
renderDpi |
|
| System.Drawing.Size |
maxSize |
|
| System.Drawing.Size |
targetSize |
|
Returns
| Type |
Description |
| System.Single |
|
GetRoundedBounds(Single, Single)
Declaration
public static int GetRoundedBounds(float value, float delta = 0.001F)
Parameters
| Type |
Name |
Description |
| System.Single |
value |
|
| System.Single |
delta |
|
Returns
| Type |
Description |
| System.Int32 |
|