Recent

Author Topic: AlphaBlend function in cross platform LCL  (Read 1586 times)

dmitryb

  • New Member
  • *
  • Posts: 35
AlphaBlend function in cross platform LCL
« on: October 02, 2018, 01:45:58 am »

Hi All

What is the analog of Win32 function AlphaBlend in cross platform LCL?
I need to draw TBitmap on Canvas with specified level of transparency.

Handoko

  • Hero Member
  • *****
  • Posts: 3185
  • My goal: build my own game engine using Lazarus
Re: AlphaBlend function in cross platform LCL
« Reply #1 on: October 02, 2018, 05:09:02 am »
I don't think there is a single command to draw bitmap with specified level of transparency. Perhaps you can try BGRABitmap package.

This how to make a transparent form with BGRABitmap discussion maybe can help you:
https://forum.lazarus.freepascal.org/index.php/topic,34038.msg222021.html

And this is a list BGRABitmap's tutorials:
http://wiki.freepascal.org/BGRABitmap_tutorial