Sign in Join

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

Mailing lists / lazarus / 2017-03

Help with bitmaps, glyph, etc...

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

José Mejuto

Hello,

I need help with bitmaps as my tests results in unexpected/random behavior.

I need to get current glyph from a BitBtn, clone it to another bitmap (to be stored in memory), then process the image content and finally write the result to the BitBtn.

In my tests I clone the bitmap using TBitmap.RawImage and everything looks to work fine but after setting BitBtn.Glyph to this new created bitmap sometimes the operation works fine (when mouse is over the BitBtn), other times it simply disappear and other times it is partially painted blending new content with old one.

Just for the test I was using .ico file with transparency (32 bits), other formats will be supported later, but now I need at least one format that works fine.

Platform is Win32 running Windows 7. I hope to handle it in a cross platform way, or even specific code for each platform.

Is there any recommended operations sequence ? Forget about TBitmap and use TLazIntfImage ?

Thank you.

Reply by email

Unknown author
to José Mejuto

Dear Lazarus mailing list, We would like to acknowledge that we have received your request and a ticket has been created. A support representative will be reviewing your request and will send you a personal response.(usually within 24 hours). To view the status of the ticket or add comments, please visit https://trubrain.freshdesk.com/helpdesk/tickets/512 Thank you for your patience. Sincerely, TruBrain Support Team

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170303/17056b3a/attachment.html>

Reply by email