Search found 111 matches: abpaint

Return to advanced search

Re: Painting alpha blended bmp on windows

There is a function ABPaint( hDC := GetWindowDC( hWnd ), nLeft, nTop, oBmp:hBitmap ) sample testab.prg DEFINE BITMAP oBmp FILENAME "..\bitmaps\AlphaBmp\Trash.bmp" ... ... ACTIVATE WINDOW oWnd ; ON PAINT ABPaint( hDC, 10, 10, ...
by ukoenig
Fri Jan 15, 2021 2:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Painting alpha blended bmp on windows
Replies: 2
Views: 394

Re: Abpaint

... 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 ...
by karinha
Tue Jan 30, 2018 6:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Abpaint
Replies: 1
Views: 458

Abpaint

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
by Silvio.Falconi
Tue Jan 30, 2018 5:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Abpaint
Replies: 1
Views: 458

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6329

New FTDN April/Abril 2017 (FWH 17.04)

... http://forums.fivetechsupport.com/viewtopic.php?p=201077#p201077 Please review samples\rbdesign.prg for an example of use * Enhancement: function ABPaint() now returns a logical value to know the result of the call to function AlphaBlend() used from ABPaint(): https://msdn.microsoft.com/es-es/library/windows/desktop/dd183351(v=vs.85).aspx ...
by Antonio Linares
Mon May 01, 2017 10:38 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2017 (FWH 17.04)
Replies: 0
Views: 1271

Re: Bug in HasAlpha()

... Even if the alpha channel is added ( 32-bit bitmap instead of 24-bit bitmap) there is no change in the content or rendering when painted with abpaint(). We knew this behavior from the time we started using GDI+. Thank you. This could explain why HasAlpha() is not working fine. Unfortunately ...
by Enrico Maria Giordano
Thu Apr 06, 2017 7:53 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8404

Re: Bug in HasAlpha()

... Even if the alpha channel is added ( 32-bit bitmap instead of 24-bit bitmap) there is no change in the content or rendering when painted with abpaint(). We knew this behavior from the time we started using GDI+.
by nageswaragunupudi
Thu Apr 06, 2017 1:31 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8404

Re: Bug in HasAlpha()

Enrico, Lets check if it works. I have modified FWH function ABPaint() to return the result of the call to AlphaBlend() function HasAlpha( hBitmap )   local hDC := CreateDC( "DISPLAY", "", "" )  ...
by Antonio Linares
Wed Apr 05, 2017 6:53 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8404

Re: Bug in HasAlpha()

So, why not to make a function HasAlpha( hBmp ) using ABPaint() inside it?

EMG
by Enrico Maria Giordano
Wed Apr 05, 2017 6:25 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8404

Re: Bug in HasAlpha()

The idea is:

lHasAlpha = ABPaint( hDC, nX, nY, hBitmap, nAlphaLevel )
by Antonio Linares
Wed Apr 05, 2017 10:33 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8404

Re: Bug in HasAlpha()

I don't understand. I have to select the correct painting function to use after checking for alpha channel. Ie:

IF HASALPHA()
use ABPAINT()
ELSE
use something else
ENDIF

EMG
by Enrico Maria Giordano
Wed Apr 05, 2017 10:24 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8404

Re: Bug in HasAlpha()

... pixels: https://msdn.microsoft.com/en-us/library/windows/desktop/dd183351(v=vs.85).aspx Thus, we could modify FWH function ABPaint() to return the return value of the AlphaBlend() call there
by Antonio Linares
Wed Apr 05, 2017 9:19 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8404

Re: Check if the user is gone away

... ; oWnd:End(), ( nBenutzer := USERLOGIN(oWnd), ; IIF( nBenutzer > 0, ( LOAD_SYS1(nBenutzer), BUILDMETRO(oWnd) ), oWnd:End() ) ) ) ; ON PAINT ( ABPaint( hDC, ( ScreenWidth() / 2 ) - ( oImgTouch:nWidth / 2 ), ; ( ScreenHeight() / 2 ) - ( oImgTouch:nHeight / 2 ), oImgTouch:hBitmap, 255 ),; // ...
by ukoenig
Tue Feb 16, 2016 2:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Check if the user is gone away
Replies: 8
Views: 2433

Re: GDIPLUSDRAWIMAGE

... DEFINE BITMAP oBackground FILENAME c_path1 + "Background.png" DEFINE WINDOW oWnd FROM 10, 10 TO 48,110 ACTIVATE WINDOW oWnd ; ON PAINT ( ABPaint( hDC, 50, 10, oBackground:hBitmap, 255 ) )
by Silvio.Falconi
Wed Jan 13, 2016 11:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GDIPLUSDRAWIMAGE
Replies: 13
Views: 2779

New FTDN November/Noviembre 2015 (FWH 15.11)

... * Enhancement: TMenuitem, allows use of bmps, pngs, jpgs Thanks to Manuel Alvarez ( mastintin ) * Enhancement: function ABPaint() now accepts a sixth and seventh parameters to directly resize the painted image. Thanks to Enrico! * Enhancement: TXImage: Can now be created ...
by Antonio Linares
Sat Dec 26, 2015 9:26 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN November/Noviembre 2015 (FWH 15.11)
Replies: 5
Views: 2733
Next

Return to advanced search