WPCubed Product Support

WPImage object and alpha transparency

Hi,

another question belongs to alpha transparency of bitmap object. I am still trying to make it works, but I am not able to find the right way, how to load or show transparent images PNG inside WPTools.

I am using ImageEN components to create TBitmap object with alpha transparency but WPTools alsways shows the image with gray color in background. If I set TWPOImage Transparency to True, the image will be transparent only like one color transarency. Can you change the internal drawing of TWPOImage.Paint method to use alpha channel? Or can you please, provide me example, how to use transparent images inside WPTools?

Thanks.

Petr Slipek.

#1 ♥ 0
3.4k Views 2 users read 2 min

Any news or at least short answer?

Petr

#2 ♥ 0
support

@Sleep:
Hi,

another question belongs to alpha transparency of bitmap object. I am still trying to make it works, but I am not able to find the right way, how to load or show transparent images PNG inside WPTools.

I am using ImageEN components to create TBitmap object with alpha transparency but WPTools alsways shows the image with gray color in background. If I set TWPOImage Transparency to True, the image will be transparent only like one color transarency. Can you change the internal drawing of TWPOImage.Paint method to use alpha channel? Or can you please, provide me example, how to use transparent images inside WPTools?

I don't have ImageEN - but PngLib draws itself transparently if simple

TPngObject(Graphic).Draw(toCanvas, BoundsRect);

is used. Since the objects draw itself, the transparency feature must be implemented there.

A start is the unit wpobj_image. It implements the use of the standard graphic objects, GraphicEx, PngImg, GifImg.

Julian

#3 ♥ 0
This category is archived. No new posts are possible.