API Reference
OfficeImageRenderPlan
Shared fit and source-crop placement plan for rendering an image into a target rectangle.
Inheritance
- ValueType
- OfficeImageRenderPlan
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Methods
public static OfficeImageRenderPlan CreateBottomLeft(Double sourceWidth, Double sourceHeight, Double targetX, Double targetBottomY, Double targetWidth, Double targetHeight, OfficeImageFit fit = Stretch, OfficeImageSourceCrop sourceCrop = default) #OfficeImageRenderPlanCreates a render plan for coordinate systems where Y grows upward from the bottom edge.
Parameters
- sourceWidth System.Double
- sourceHeight System.Double
- targetX System.Double
- targetBottomY System.Double
- targetWidth System.Double
- targetHeight System.Double
- fit OfficeIMO.Drawing.OfficeImageFit = Stretch
- sourceCrop OfficeIMO.Drawing.OfficeImageSourceCrop = default
public static OfficeImageRenderPlan CreateTopLeft(Double sourceWidth, Double sourceHeight, Double targetX, Double targetY, Double targetWidth, Double targetHeight, OfficeImageFit fit = Stretch, OfficeImageSourceCrop sourceCrop = default) #OfficeImageRenderPlanCreates a render plan for coordinate systems where Y grows downward from the top edge.
Parameters
- sourceWidth System.Double
- sourceHeight System.Double
- targetX System.Double
- targetY System.Double
- targetWidth System.Double
- targetHeight System.Double
- fit OfficeIMO.Drawing.OfficeImageFit = Stretch
- sourceCrop OfficeIMO.Drawing.OfficeImageSourceCrop = default
public OfficeImageProjection ToVisibleProjection(Double rotationDegrees = 0, Nullable<Double> rotationCenterX = null, Nullable<Double> rotationCenterY = null, Boolean flipHorizontal = false, Boolean flipVertical = false) #OfficeImageProjectionReturns a visible-placement projection suitable for top-left SVG and raster renderers.
Parameters
- rotationDegrees System.Double = 0
- rotationCenterX System.Nullable{System.Double} = null
- rotationCenterY System.Nullable{System.Double} = null
- flipHorizontal System.Boolean = false
- flipVertical System.Boolean = false
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public OfficeImagePlacement TargetPlacement { get; } #Original target rectangle requested by the caller.
public OfficeImagePlacement VisiblePlacement { get; } #Rectangle occupied by the visible image content after fit and source crop are applied.
public OfficeImagePlacement ImagePlacement { get; } #Rectangle used to draw the underlying full image before source-crop clipping.
public OfficeImageSourceCrop SourceCrop { get; } #Source-image crop fractions used by the plan.
public OfficeImageFit Fit { get; } #Requested image fit mode.
public Boolean RequiresTargetClip { get; } #Whether the rendered image must be clipped to TargetPlacement.