<- Back to MMColor function list
MMColor_CreateColorImage
- Description
This function takes a HexColor and creates a container image of the specified width and height (defaulting to 25x25) and returns that image to you. The native image type is a PNG (which allows for Alpha Transparency), but a JPEG "Preview" is also included in the container object for printing and using with Instant Web Publishing.
- Return Type
- Container
- Format
- MMColor_CreateColorImage ( HexColor ; Width ; Height ; Alpha )
- Required Parameters
- HexColor
The Color of the Image to Create.
- HexColor
- Optional Parameters
- Width
The Width of the Image. (Default is 25.)
- Height
The Height of the Image. (Default is 25.)
- Alpha
The Alpha/Transparency level. (0-255; Default is 255.)
- Width
- Related Items
- MMColor_GetImageColor
- Examples
Example 1
Code:
MMColor_CreateColorImage("FF00FF")Result:
Returns a bright purple image.Example 2
Code:
MMColor_CreateColorImage("757500"; 100 ; 50 ; 128 )Result:
Returns a 1/2 opaque olive image that is 100 pixels wide and 50 pixels tall.