Click or drag to resize
Ab4d.SharpEngine logo

BitmapLoadOptions Class

Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CommonBitmapLoadOptions

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public class BitmapLoadOptions

The BitmapLoadOptions type exposes the following members.

Constructors
 NameDescription
Public methodBitmapLoadOptionsInitializes a new instance of the BitmapLoadOptions class
Top
Fields
 NameDescription
Public fieldConvertToSupportedFormat When true (the default), the loaded images are converted into a format that is supported by the engine (i.e., 32 bit BGRA or RGBA format). When false, the loader attempts to preserve the format of the bitmap (for example, 8 bit for grayscale); note that this is not guaranteed, and that loader may still convert the image to BGRA format. Also note that the image in the original format may not be correctly displayed by the engine.
Public fieldPremultiplyAlpha When true (the default), the R, G, and B channel data is pre-multiplied with alpha values (either at the loader level, or in postprocessing). When false, the image data is returned as-is.
Top
See Also