Name | CNSImage_CreateHexColorImage |
---|
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 | CNSImage_CreateHexColorImage ( 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. CNSImage_CreateHexColorImage( "FF00FF" )
- Example 2
Returns a 1/2 opaque olive image that is 100 pixels wide and 50 pixels tall. CNSImage_CreateHexColorImage( "757500" ; 100 ; 50 ; 128 )
|
---|