Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-03

Icon transparency

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

patspiper

Hi,

Component palette icons should use as transparent color the lower left pixel. While the component palette honors this, the icon loses its transparency when the component is placed on a form (IDE design mode). The transparent color is shown instead as a proper color.

Shall I report this behavior as a bug?

Thanks,
Stephano

Reply by email

Zaher Dirkey
to patspiper
patspiper wrote 13 lines
Hi, Component palette icons should use as transparent color the lower left pixel. While the component palette honors this, the icon loses its transparency when the component is placed on a form (IDE design mode). The transparent color is shown instead as a proper color. Shall I report this behavior as a bug? Thanks, Stephano

As i know component palette icons is png image with alpha channels .

Regards

Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110326/0da779e5/attachment.html>

Reply by email

patspiper
to Zaher Dirkey
Zaher Dirkey wrote 20 lines
On Sat, Mar 26, 2011 at 12:54 AM, patspiper < <mailto:>> wrote: Hi, Component palette icons should use as transparent color the lower left pixel. While the component palette honors this, the icon loses its transparency when the component is placed on a form (IDE design mode). The transparent color is shown instead as a proper color. Shall I report this behavior as a bug? Thanks, Stephano As i know component palette icons is png image with alpha channels .

Where can I find an example of such an icon with the corresponding FPC resource file (res or dcr)?

What should it be marked in the resource file? BITMAP? ICON?

Still, bitmap images use transparency when shown on the palette.

Stephano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110326/c49ee7f7/attachment-0001.html>

Reply by email

Paul Ishenin
to patspiper
patspiper wrote 5 lines
> As i know component palette icons is png image with alpha channels . Where can I find an example of such an icon with the corresponding FPC resource file (res or dcr)? What should it be marked in the resource file? BITMAP? ICON?

Only RT_BITMAP resources can be used for component images in case of FPC resources. Png does not have a corresponding resource type and can't be used.

Still, bitmap images use transparency when shown on the palette.

I will look at this problem later.

Best regards,
Paul Ishenin

Reply by email

patspiper
to Paul Ishenin
Paul Ishenin wrote 9 lines
26.03.2011 23:12, patspiper wrote: >> As i know component palette icons is png image with alpha channels . > Where can I find an example of such an icon with the corresponding > FPC resource file (res or dcr)? > > What should it be marked in the resource file? BITMAP? ICON? Only RT_BITMAP resources can be used for component images in case of FPC resources. Png does not have a corresponding resource type and can't be used.

That's unfortunate.

> Still, bitmap images use transparency when shown on the palette. I will look at this problem later.

Thanks,
Stephano

Reply by email

Paul Ishenin
to patspiper
patspiper wrote
>> Still, bitmap images use transparency when shown on the palette. > > I will look at this problem later.

Since r30042 bitmaps loaded from FPC resources are transparent.

Best regards,
Paul Ishenin

Reply by email

patspiper
to Paul Ishenin
Paul Ishenin wrote 6 lines
27.03.2011 13:31, patspiper wrote: >>> Still, bitmap images use transparency when shown on the palette. >> >> I will look at this problem later. Since r30042 bitmaps loaded from FPC resources are transparent.

Thanks!

Stephano

Reply by email