Search found 61 matches: hasalpha

Return to advanced search

Re: QRCODE

... := loadBmp(cUrl) if !Empty( cResp ) oGbmp:hbmp := GDIPLUSIMAGELOADPNGFROMSTR( cResp,len(cResp) ) oImage:hBitmap := oGBmp:GetGDIHbitmap() oImage:HasAlpha() oImage:Refresh() if msgYesNo( " ¨ quiere grabar el codigo QR a Disco ?") // oGBmp:save(".\qrcode.png" ) // FORMATO INVALIDO ...
by jnavas
Tue Dec 11, 2018 8:39 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: QRCODE
Replies: 12
Views: 3702

QRCODE

... := loadBmp(cUrl) if !Empty( cResp ) oGbmp:hbmp := GDIPLUSIMAGELOADPNGFROMSTR( cResp,len(cResp) ) oImage:hBitmap := oGBmp:GetGDIHbitmap() oImage:HasAlpha() oImage:Refresh() if msgYesNo( " ¨ quiere grabar el codigo QR a Disco ?") oGBmp:save(".\qrcode.png" ) // FORMATO INVALIDO ...
by jnavas
Tue Dec 11, 2018 8:18 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: QRCODE
Replies: 12
Views: 3702

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: 6286

Re: Bug in HasAlpha()

Function HasAlpha() has never been changed and works the same way it was working all the time. cFile := "c:\fwh\bitmaps\olga1.jpg"hBmp := FILOADIMG( cFile ) // Source of function image.prg. Requires Freeimage.dll? ...
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: 8155

Re: Bug in HasAlpha()

Function HasAlpha() has never been changed and works the same way it was working all the time. cFile := "c:\fwh\bitmaps\olga1.jpg"hBmp := FILOADIMG( cFile ) // Source of function image.prg. Requires Freeimage.dll? ...
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: 8155

Re: Bug in HasAlpha()

Are you linking hbpcre.lib ?
by Antonio Linares
Wed Apr 05, 2017 11:14 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8155

Re: Bug in HasAlpha()

I get this: Harbour 3.2.0dev (r1605041350)Copyright (c) 1999-2016, http://harbour-project.org/Embarcadero C++ 7.20 for Win32 Copyright (c) 1993-2016 Embarcadero Technologies, Inc.ALPHA.c:Turbo Incremental Link 6.75 Copyright (c) 1997-2016 Embarcadero Technologies, Inc...
by Enrico Maria Giordano
Wed Apr 05, 2017 9:09 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8155

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", "", "" )   local lHasAlpha := ABPaint( ...
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: 8155

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: 8155

Re: Bug in HasAlpha()

If we paint it into a memory hDC then we will just check if it works or not

Nothing will be seen
by Antonio Linares
Wed Apr 05, 2017 6:11 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8155

Re: Bug in HasAlpha()

Yes, but then the image is already printed with the right or wrong function. We need of a checking function that doesn't print the image, I think.

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

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: 8155

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: 8155

Re: Bug in HasAlpha()

Please try it using this function: You have to provide it a hDC and later on call DeleteDC() HB_FUNC( ABPAINT ){   #ifdef _WIN64     HDC hDC = ( HDC ) hb_parnll( 1 );   #else     HDC hDC = ( HDC ) hb_parnl( 1 ...
by Antonio Linares
Wed Apr 05, 2017 10:01 am
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in HasAlpha()
Replies: 21
Views: 8155

Re: Bug in HasAlpha()

Ok, let's try it.

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

Return to advanced search