Abpaint

Abpaint

Postby Silvio.Falconi » Tue Jan 30, 2018 5:48 pm

If Iuse Abpaint to draw a bitmap

ABPaint( ::hDC, y, x, v[1], 255)

the bitmap wich color must have on the background ?

I ask this because the bitmap is not transparent ( also with manifest) and I not understood why

Image
I use : FiveWin for Harbour v. 17.11 - Harbour 3.2.0dev (r1703231115)(March 2017) - Bcc7 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
 
Posts: 2731
Joined: Thu Oct 18, 2012 7:17 pm
Location: Teramo - Abruzzo - Italy

Re: Abpaint

Postby karinha » Tue Jan 30, 2018 6:07 pm

Normal,

Code: Select all  Expand view

// AlphaBlending transparencies support in FiveWin! \SAMPLES\TESTAB.PRG

#include "FiveWin.ch"

function Main()

   local oWnd, oBmp, oBrush

   DEFINE BITMAP oBmp FILENAME "..\bitmaps\AlphaBmp\Trash.bmp"

   DEFINE BRUSH oBrush FILENAME "..\bitmaps\backgrnd\paper2.bmp"

   DEFINE WINDOW oWnd TITLE "FWH 17.01 Transparencies" ;
      COLOR 0, "N/W" BRUSH oBrush

   ACTIVATE WINDOW oWnd ;
      ON PAINT ABPaint( hDC, 10, 10, oBmp:hBitmap, 220 ) // 0-255 transparency level

   oBrush:End()
   oBmp:End()

return nil
 
João Santos - São Paulo - Brasil
karinha
 
Posts: 3664
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Ariel, vilian and 5 guests