AlphaBlendImage command

The AlphaBlendImage command allows to draw 32-bit bitmaps over the window with the AlphaBlendWindow command applied. Combining use of AlphaBlendWindow, AlphaBlendImage, MMB Hotspot objects and some scripting you can create interactive window with great appearance and design. Just place hotspot object in the window, call AlphaBlendWindow command and then use AlphaBlendImage command to draw 32-bit image over the area where hotspot is located.

 

Changing command parameters with help of a some scripting you can achieve different effects like fade in, fade out, rollover etc. It is similar to AlphaButtons but has a bit more possibilities (but not as easy in use ;).

 

Syntax

String$='PathToFile, X, Y, WindowConstantAlpha, DrawModeFlags'

Integer=ConstantAlpha

PluginSet("PlugIn","Integer")

PluginSet("PlugIn","String$")

PluginRun("PlugIn","AlphaBlendImage")

Parameters

PathToFile

[in] Path to the 32-bit BMP file. The alpha channel from this file determines the shape and per-pixel opacity of the image.

X

[in] Specifies the X coordinate of the upper left corner of the image.

Y

[in] Specifies the Y coordinate of the upper left corner of the image.

WindowConstantAlpha

[in] Specifies an alpha transparency value to be used on the entire application window. If you set WindowConstantAlpha to 0, it is assumed that window is transparent.

DrawModeFlags

[in] Currently the only draw mode flag that has been defined is ERASEBACKGROUND. Adding this flag to the command parameters will cause erasing of all previously drawn images over the area that is covered by current image.

ConstantAlpha

[in] Specifies an alpha transparency value to be used on the entire bitmap. The ConstantAlpha value is combined with any per-pixel alpha values in the source bitmap. If you set ConstantAlpha to 0, it is assumed that your image is transparent. Set the ConstantAlpha value to 255 (opaque) when you only want to use per-pixel alpha values from image.