... of the bitmap. |
| `nOldX`, `nOldY` | `NUMERIC` | Previous X and Y positions of the bitmap. |
| `hBitmap` | `HANDLE` | Handle to the bitmap. |
| `hPalette` | `HANDLE` | Handle to the bitmap's palette. |
| `cBmpFile` | `CHARACTER` | File path of the bitmap. |
| `cResName` | `CHARACTER` | Resource name ...
Search found 45 matches: hpalette
Searched query: hpalette
- Fri Jan 17, 2025 10:41 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 5199
- Fri Nov 29, 2024 1:02 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: READPALBMPEX
- Replies: 5
- Views: 1545
READPALBMPEX
... give me error not found method ...why ?
on note .txt I found
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 bitmap ...
on note .txt I found
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 bitmap ...
- Thu Oct 20, 2022 4:13 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: get hBitmap from Image
- Replies: 14
- Views: 1518
Re: get hBitmap from Image
... 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 (BMP/JPG/PNG ...
aImage {
hBitmap (GDI ) or pImage( GDI+ ),
hPalette,
width,
height,
lHasAlphaChannel,
cSourceName,
IsFromResource,
"BITMAP/PIMAGE", // If GDI+, "PIMAGE"
nZeroZeroClr,
ImageType (BMP/JPG/PNG ...
- Sat Apr 17, 2021 12:11 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Xbrowse : Setup configuration file
- Replies: 5
- Views: 1580
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 ...
::osettingbmp:hBitmap,;
::osettingbmp:hPalette,;
if(::lgetbar,::nHeaderHeight - 3-::nrowheight*2,::nheaderHeight/::nHeaderLines)*0.8,;
if(::lgetbar,::nHeaderHeight - 3-::nrowheight*2 ...
- Sat Feb 29, 2020 12:02 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: A problem with GDIP_IMAGEFROMFILE() [Solved]
- Replies: 2
- Views: 582
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 )
Elements of aImage:
{ hBitmap, hPalette, nBmpWidth, nBmpHeight, lAlpha, cName, lResource, cType, nZeroClr }
Destroy with
PalBmpFree( aImage )
- Sun Apr 15, 2018 4:08 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Problem with upgrade to FWH 2018 - 02
- Replies: 13
- Views: 3529
Problem with upgrade to FWH 2018 - 02
... to Exit " + 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 ...
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 ...
- Wed Feb 14, 2018 5:03 pm
- Forum: WhatsNew / Novedades
- Topic: New FTDN January/Enero 2018 (FWH 18.01)
- Replies: 1
- Views: 3162
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, (d ...
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, (d ...
- Mon Apr 17, 2017 3:32 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Menue
- Replies: 11
- Views: 1538
Re: Menue
... nTop' wurde ein Wert zugewiesen, der nie verwendet wird in Funktion FwBmpItem(tagDRAWITEMSTRUCT *,HMENU__ *,int,HBITMAP__ *,long,long,long,int,HPALETTE__ *)
Fehler E2034 C:\\prg_allgemein\\menudraw.prg 2191: Konvertierung von 'void *' nach 'HFONT__ *' nicht möglich in Funktion FwCharItem ...
Fehler E2034 C:\\prg_allgemein\\menudraw.prg 2191: Konvertierung von 'void *' nach 'HFONT__ *' nicht möglich in Funktion FwCharItem ...
- Tue Mar 01, 2016 9:15 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN February 2016 (FWH 16.02)
- Replies: 2
- Views: 1804
New FTDN February 2016 (FWH 16.02)
... 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 ...
- 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 ...
- Sat Oct 24, 2015 5:56 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: TXImage from resources
- Replies: 5
- Views: 1282
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 freeimage ( especially with png ) .
You ...
This function is in btnbmp.prg for substitution in test .
In my tests gdi+ it gives equal and often better quality than freeimage ( especially with png ) .
You ...
- Sun Jan 18, 2015 11:04 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN January/Enero 2015 (FWH 15.01)
- Replies: 0
- Views: 2237
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 ...
* 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 ...
- Tue Dec 16, 2014 9:12 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Perdida recurso en Preview
- Replies: 18
- Views: 4361
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 de ...
- Thu Aug 14, 2014 12:08 am
- Forum: EasyReport, EasyDialog y EasyPreview
- Topic: Tengo un mensqje de error en bcc582
- Replies: 2
- Views: 1952
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 ...
#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 ...
- 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: 2080
Re: How to keep a existing alpha-channel, saving a bitmap ?
... 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 ...
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 ...
- Sun Apr 06, 2014 12:27 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Drawing on a TImage and save (revamped) :-) [Solved]
- Replies: 41
- Views: 10612
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 ...
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 ...