I would like to transform a fully black image to a semi-transparent image.
Here is the code :
- Code: Select all
GDV_File.DisplayFromFile("c:\opacity.bmp") ' this file is a black rectangle
GDI_Tmp.SetNativeImage (GDV_File.GetNativeImage)
GDI_Tmp.SetTransparency(128)
GDI_Tmp.SetTransparencyColor(GDI_Tmp.argb(255, 0, 0, 0))
GDV_File.SetNativeImage (GDI_Tmp.GetNativeImage)
When I use this code or try other parameters than 128 and 255, I get always a fully transparency or a full opacity.
Thanks for your help.
Louis
