Product Logo

MMColor

Create and enhance color elements

Functions

MMColor_CreateColorImage

NameMMColor_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 TypeContainer
FormatMMColor_CreateColorImage ( HexColor ; Width ; Height ; Alpha )
Required Parameters
HexColor

The Color of the Image to Create.

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.)

Examples
Example 1

Returns a bright purple image.

MMColor_CreateColorImage( "FF00FF" )
Example 2

Returns a 1/2 opaque olive image that is 100 pixels wide and 50 pixels tall.

MMColor_CreateColorImage( "757500" ; 100 ; 50 ; 128 )