Blends two images with alpha channel.
Syntax
Parameters
- page1
- Page to process.
- left
- Left margin of blended image.
- top
- Top margin of blended image.
- page2
- Image to blend with .
Example
//Loads an image with an alpha channel and blends it with an already loaded image.
using (FileStream file = new FileStream("PNGTEST.png",
FileMode.Open, FileAccess.Read, FileShare.Read))
{
ImGearRasterPage igRasterPageAlpha = (ImGearRasterPage)
ImGearFileFormats.LoadPage(file, 0);
ImGearRasterProcessing.BlendWithAlpha(
igRasterPage, 10, 10, igRasterPageAlpha);
}
'Loads an image with an alpha channel and blends it with an already loaded image.
Using file As New FileStream("PNGTEST.png", FileMode.Open, FileAccess.Read, FileShare.Read)
Dim igRasterPageAlpha As ImGearRasterPage = DirectCast(ImGearFileFormats.LoadPage(file, 0), ImGearRasterPage)
ImGearRasterProcessing.BlendWithAlpha(igRasterPage, 10, 10, igRasterPageAlpha)
End Using
See Also