Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Enumerations / Resize

Resize enumeration

Specifies the resize method to use when resizing the image. This option enables or disables maintaining the aspect ratio.

If you use the ATL COM version of the library, you can supply the string value (the name of the value) or the number value (as listed in the table below) as the enumeration value. If you use the Class Library, the enumeration is available as an enum object with the name MarblecoreImagingResize which contains all the available values.

Values

NameValueDescription
Exact0Resizes the image to the specified width and height
Fit1Resizes the image to fit within the specified width and height while maintaining aspect ratio (resizing only occurs if the width or height of the image is larger then the desired width or height)
Zoom2Resizes the image to the specified width or height while maintaining aspect ratio (resizing only occurs if the width or height of the image is smaller then the desired width or height)

See also

InsertFromBase64 | InsertFromFile | InsertFromSerializedStream | InsertFromStream | InsertFromURL | Resize