Search found 43 matches: hpalette

Return to advanced search

Re: get hBitmap from Image

... any file name, resource name, image buffer, hBitmap, hIcon, aShape Array, Image URL on the Web, Symbol aImage { hBitmap (GDI ) or pImage( GDI+ ), hPalette, width, height, lHasAlphaChannel, cSourceName, IsFromResource, "BITMAP/PIMAGE", // If GDI+, "PIMAGE" nZeroZeroClr, ImageType ...
by nageswaragunupudi
Thu Oct 20, 2022 4:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: get hBitmap from Image
Replies: 14
Views: 719

Re: Xbrowse : Setup configuration file

... ... PalBmpDraw( ::hDC, (::nHeaderHeight - 3-if(::lgetbar,::nrowheight*2,0))*0.2, RECORDSELECTOR_WIDTH*0.2,; ::osettingbmp:hBitmap,; ::osettingbmp:hPalette,; if(::lgetbar,::nHeaderHeight - 3-::nrowheight*2,::nheaderHeight/::nHeaderLines)*0.8,; if(::lgetbar,::nHeaderHeight - 3-::nrowheight*2,::nheaderHeight/::nHeaderLines)*0.8; ...
by ShumingWang
Sat Apr 17, 2021 12:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse : Setup configuration file
Replies: 5
Views: 1216

Re: A problem with GDIP_IMAGEFROMFILE()

We recommend using FW_ReadImage( nil, cAnyImageSource, [aSize], [lGDIP] ) --> aImage

Elements of aImage:
{ hBitmap, hPalette, nBmpWidth, nBmpHeight, lAlpha, cName, lResource, cType, nZeroClr }

Destroy with
PalBmpFree( aImage )
by nageswaragunupudi
Sat Feb 29, 2020 12:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GDIP_IMAGEFROMFILE() [Solved]
Replies: 2
Views: 529

Problem with upgrade to FWH 2018 - 02

... + PA[04] + "?" ) ; ON PAINT ( PalBmpDraw( hDC, (oWnd:nHeight/2-oBmp:nHeight/2)-50,(oWnd:nWidth/2-oBmp:nWidth/2), oBmp:hBitmap, oBmp:hPalette ) ); ON INIT ShowLogo( @oBmp, oWnd ) ; MAXIMIZED FUNCTION ShowLogo( oBmp, oWnd ) IF FILE( PA[03] + 'winfrt10.bmp' ) oBmp:LoadBMP( PA[03] + ...
by cdmmaui
Sun Apr 15, 2018 4:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with upgrade to FWH 2018 - 02
Replies: 13
Views: 3061

New FTDN January/Enero 2018 (FWH 18.01)

... oWnd can be any window, dialog or control. Releasing Image: PalBmpFree( aImageInfo ) aImageInfo format { pImage/hBitmap/hIcon/hCursor/hMeta, hPalette, nWidth, nHeight, lHasAlpha, cSource, lResource ) uSource: Can be (a) any file on disk (b) internet address of an image, (c) Resource Name, ...
by Antonio Linares
Wed Feb 14, 2018 5:03 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2018 (FWH 18.01)
Replies: 1
Views: 2566

Re: Menue

Cristobal, some compiler Errors in menudraw.c: You must calculate the error-linenumber -9 as i compile with #pragma begindump! Warnung W8004 C:\\prg_allgemein\\menudraw.prg 1699: 'nPos' wurde ein Wert zugewiesen, der nie verwendet wird in Funktion FwSelectedItem(tagDRAWITEMSTRUCT *,HMENU__ *,int,lon...
by byte-one
Mon Apr 17, 2017 3:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Menue
Replies: 11
Views: 1231

New FTDN February 2016 (FWH 16.02)

... - METHOD IsAlphaChannel() - METHOD GetRecolorColorMatrix( nRed, nGreen, nBlue ) - METHOD SetPixeltoAlpha( x, y ) - METHOD CreateFromRes( Hbitmap, hPalette ) - METHOD ConverToGray() - METHOD ImageRotate( nDegrees, lAdjust ) - Function GetImgFromList( uResBmp, nParts, nOrd, nW, nH, nPartsV, nOrdV ...
by Antonio Linares
Tue Mar 01, 2016 9:15 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February 2016 (FWH 16.02)
Replies: 2
Views: 1308

Re: TXImage from resources

Enrico , use WndReadPalBmpEx( Self, uBmp, aReSize ) -> aBmp // format: { hBitmap, hPalette, nBmpWidth, nBmpHeight, lAlpha, cName, lResource } This function is in btnbmp.prg for substitution in test . In my tests gdi+ it gives equal and often better quality than ...
by mastintin
Sat Oct 24, 2015 5:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TXImage from resources
Replies: 5
Views: 1100

New FTDN January/Enero 2015 (FWH 15.01)

... Please review samples\fivedit.prg for an example of use. * New: Method ReadPalBmpEx( uSource, [aResize] ) class TWindow --> { hBitmap, hPalette, nBmpWidth, nBmpHeight, lAlpha, cName, lResource } uSource can be bmpfile, resource, any imagefile, image buffer from memory or handle of a ...
by Antonio Linares
Sun Jan 18, 2015 11:04 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2015 (FWH 15.01)
Replies: 0
Views: 1942

Re: Perdida recurso en Preview

... cual trataria correctamente las propiedades necesarias, por que al realizar cambios directos del hBitmap, por ejemplo, no se estaría actualizando hPalette, o otras propiedades del bitmap, las cual se borrarían con la primer llamada al método end, entiendo que para esta ocacion es mas fácil hacerlo ...
by carlos vargas
Tue Dec 16, 2014 9:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Perdida recurso en Preview
Replies: 18
Views: 3558

Tengo un mensqje de error en bcc582

... PFNPROPSHEETCALLBACK pfnCallback; #if (_WIN32_IE >= 0x0400) union { HBITMAP hbmWatermark; LPCSTR pszbmWatermark; } DUMMYUNIONNAME4; HPALETTE hplWatermark; union { HBITMAP hbmHeader; // Header bitmap shares the palette with watermark LPCSTR pszbmHeader; } DUMMYUNIONNAME5; #endif } ...
by Armando Picon
Thu Aug 14, 2014 12:08 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Tengo un mensqje de error en bcc582
Replies: 2
Views: 1560

Re: How to keep a existing alpha-channel, saving a bitmap ?

... hDib ) the needed changes in class TImage : METHOD SaveImage( cFile, nFormat, nQuality ) CLASS TImage local hDib := DibFromBitmap( ::hBitmap, ::hPalette ) local cTempFile := cTempFile() local lSaved, lAlpha := ::HasAlpha() DibWrite( cTempFile, hDib ) GloBalFree( hDib ) lSaved = FIConvertImageFile( ...
by ukoenig
Mon Jun 23, 2014 10:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a alpha-channel, save and resize a bitmap
Replies: 5
Views: 1878

Re: Drawing on a TImage and save (revamped) :-)

... hMemBmp := CREATECOMPATIBLEBITMAP( hDC, nWidth, nHeight ) LOCAL hBmpOld := SELECTOBJECT( hMemDC, hMemBmp ) LOCAL hBitmap := oImg:hBitmap LOCAL hPalette := oImg:hPalette PALBMPDRAW( hMemDC, 0, 0, hBitmap, hPalette, nWidth, nHeight ) DO_LINES( hMemDC, hPen, nPensize, nPenColor ) SELECTOBJECT( ...
by ukoenig
Sun Apr 06, 2014 12:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8375

Re: "Snap" for Clipper

...   835   952  1183  2920 HMENU                  WINDOW.PRG      840  1188  1510  1516  1735  1735  1767 HORIZONTAL              WINDOW.PRG     1199 HPALETTE                WINDOW.PRG     2402 HPOPUP                  WINDOW.PRG      663  3069  3076G 3083G HPRVWND                WINDOW.PRG      173 ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6698

SOURCE FOR IMAGE WITH *.BMP *.EMF *.GIF *.ICO *.JPG *.PNG *

... ,"Select ALL IMAGE" ) local hBitmap :=IMAGE_HBITMAP(cBmpFile) if hBitmap != 0 if oBmp:hBitmap != 0 PalBmpFree( oBmp:hBitmap, oBmp:hPalette ) oBmp:hBitmap = 0 oBmp:hPalette = 0 endif oBmp:hBitmap = hBitmap oBmp:hPalette = 0 // Where to get it from ? PalBmpNew( oBmp:hWnd, hBitmap, ...
by HATHAL
Sun Oct 06, 2013 8:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Cover Flow
Replies: 10
Views: 5585
Next

Return to advanced search