ImageAdv.convertTo24Bit() 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.convertTo24Bit():Boolean

Parameters
none

Returns
boolean flag that determines if operation was successful

Description
converts bitmap into 24bit (RGB) color space. The boolean is returned to indicate if operation was successful.


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
// image - instance of ImageAdv
if(image.isValid)
{
// convert image to 24bit
var converted:Boolean = image.convertTo24Bit();
// if converted flush changes to local file
if(converted) {
image.saveJpg(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