How to create Brushes, using BMP with Alphachannel ?

How to create Brushes, using BMP with Alphachannel ?

Postby ukoenig » Tue Jan 10, 2012 12:33 pm

Hello,

is it possible to use a BMP with Alphachannel for Brush-define ?

Maybe we have to define < SetBkMode > in Class TBrush,
to use BMP's with Alphachannel ?

Image

Adjusted Bmp-Brush :

Image

BMP calculated ( with Alphachannel ) :
The Result I need, a Brushdefine, using a BMP with Alphachannel !!!
I can fill a defined Area, placing the BMP next to each other and Line by Line
but not as a Brush.
I want to use 2 Layers : a Basic-brush and a 2. Brush, using a BMP with Alphachannel ( Watermarks ).

A empty Area ( No selected Image )

Image

Image

The Gradient, Screen-bmp and transparent Brush will be replaced
with the selected Image :

Image

replaced with selected Image ( keeping Height, Width adjusted ) :

Image

Best Regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 116 guests