ImageAdv.convertTo32Bit() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to ImageAdv Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.ImageAdv.convertTo32Bit():Boolean

Parameters
none

Returns
Boolean value to denote success of operation

Description
This operation converts bitmap into 32bit colorspace (RGBA). Note that no all image formats supports 32bit color space. For example JPG file format won't support that so you would have to use PNG file format to create local version of bitmap.

Notes
This operation does not change your original file. It operates on bitmap hosted in memory - so you have to flush changes to local file to persist them by saving JPEG/PNG files locally.

Example Code
if(image.isValid)
{
var converted:Boolean = image.convertTo32Bit();
// if successfull write data to local file
if(converted)
{
image.savePng(outputPath);
};
};

mdm.ImageAdv Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page