Class
OfficeRasterResizeOptions
OfficeIMO.Drawing
Requested pixel bounds and sampling for a managed raster resize.
Inheritance
- object
- OfficeRasterResizeOptions
Remarks
Contain returns fitted pixels without padding. Cover requires both axes and returns a centered crop. Settings are captured by the resize plan before allocation; later changes do not affect that plan.
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 3
- Method OfficeRasterFrames.Resize
- Method OfficeRasterResampler.PlanResize
- Method OfficeRasterResampler.Resize
Constructors
public OfficeRasterResizeOptions() #Inherited Methods
Properties
public int? Width { get; set; } #Requested width or width bound. At least one axis must be supplied.
public OfficeImageFit Fit { get; set; } #Stretch keeps an omitted source axis; Contain infers it; Cover requires both axes.
public OfficeRasterResamplingMode ResamplingMode { get; set; } #Sampling kernel. The editing default is bicubic.
public OfficeRasterResamplingColorSpace ColorSpace { get; set; } #Color space in which samples are filtered.