Value | Member | Description |
---|---|---|
0 | None | Default |
1 | KeepAlphaValues |
If the source RasterImage is 32 or 64-bits/pixel, then use the alpha values from this alpha if the result of the conversion is also a 32 or 64-bits/pixel android.graphics.Bitmap. If this flag is not specified, the resulting android.graphics.Bitmap will always have an alpha value of all 1's (255 for 32-bit images or 65535 for 64-bit images) regardless of the alpha values in the source RasterImage. This can be useful when converting some 32-bit images that may have 0 for the alpha (such as BMP files) which translates into an android.graphics.Bitmap that is completely transparent. If this flag is specified, then the source image alpha values will be used as is. |
10 | KeepViewPerspective |
Keep the original RasterImage view perspective. RasterImage objects support having an image data orientation other than the normal top-left orientation by using the RasterImage.ViewPerspective property. If the source RasterImage has a view-perspective other than RasterViewPerspective.TopLeft and this flag is specified, then the resulting android.graphics.Bitmap can be flipped, reversed or rotated. For example, if the source view-perspective is RasterViewPerspective.BottomLeft and this flag is specified in the conversion options, then the resulting android.graphics.Bitmap will be flipped. If this flag is not specified, then the conversion can flip, reverse or rotate the image data as needed to provide the correct (top-left) orientation for the android.graphics.Bitmap. |
100 | IgnoreLowHighBitsOnGrayImages |
Do not use the grayscale bit window values when converting 12 or 16-bit grayscale RasterImage objects. The RasterImage object contains the RasterImage.LowBit and RasterImage.HighBit values that can be set to provide a Window into the image data. This is mostly used by medical applications during a window-leveling operation. If this flag is specified, the RasterImage.LowBit and RasterImage.HighBit values are ignored and all of the image data is used when converting the RasterImage into a android.graphics.Bitmap. If this flag is not specified, then only the image data between the RasterImage.LowBit and the RasterImage.HighBit is used. |
1000 | LinkImage | Uses the data from the source's native image object without making a copy.
In Android, it links the RasterImage to a android.graphics.Bitmap. |
This enumeration is used to specify the options for converting LEADTOOLS RasterImage objects to Android android.graphics.Bitmap components through the RasterImageConverter.convertToBitmap method.