Search found 52 matches: hdib

Return to advanced search

Re: Icon in Webview

Dear Yuri,

You may try this:

hDib = DibFromBitmap( hBmp )
DibWrite( cFileName, hDib )
hb_base64Encode( hb_memoRead( cFileName ) )
by Antonio Linares
Sun May 28, 2023 3:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Icon in Webview
Replies: 5
Views: 547

Re: Consejos sobre el uso de las clases TImprime y TUtilPrn

... SayImage METHOD SayImage( nArriba,nIzq,nAncho,nAlto,xImage,lImage,lPage,nRaster ) CLASS TUtilPrn Local xCor := {},yCor := {},yyCor := {} local hDib, hPal, hBmp DEFAULT lImage := .F. ,; lPage := .F. ,; nArriba := 0.5,; nIzq := 0.5 ,; // medio cm. para margenes de PAGE nAncho := 0,; nAlto := ...
by nanoespinoza
Tue Nov 15, 2022 12:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Consejos sobre el uso de las clases TImprime y TUtilPrn
Replies: 9
Views: 1319

Re: Gluing images

... hDC ) local hBitmap := CreateCompatibleBitmap( hDCMem, nWidth, nHeigth ) local hPrev := SelectObject( hDCMem, hBitmap ) local hBmp, hDib now you paint your bitmaps on hDCMem this way: hBmp = ReadBitmap( 0, "name.bmp" ) PalBmpDraw( hDCMem, nRow, nCol, hBmp ) Finally you ...
by Antonio Linares
Tue Oct 12, 2021 5:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Gluing images
Replies: 8
Views: 916

Re: reduce an image to a fixed size

local hBmp
local hDib := DibFromBitmap( hBmp := ResizeBitmap( hBitmap, nWidth, nHeight ) )

DibWrite( cFileName, hDib )
GloBalFree( hDib )
DeleteObject( hBmp )
by Antonio Linares
Sat Oct 17, 2020 8:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: reduce an image to a fixed size
Replies: 9
Views: 1180

Re: Ayuda cpm hbzebra.lib

... 0, 0 ) && aqui lo pinta en la pantalla DrawBitmap( oCode:hCodeBar,10, 10 ) && aqui lo mando a un archivo file.bmp de 10x10 tam hDib := DibFromBitmap(oCode:hCodeBar ) DibWrite( "file.bmp" , hDib ) * oWndP:ReleaseDC() * oWndP:END() return nil
by Busmatic_wpb
Thu Sep 07, 2017 1:16 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda cpm hbzebra.lib
Replies: 12
Views: 3285

Re: Save all the Screen to BMP

function save_scr()
LOCAL hBmp, hDib,h,cFile := "screen.bmp"
h:=getdesktopwindow()
hBmp := WndBitmap(h)
hDib := DibFromBitmap( hBmp )
DibWrite( cFile, hDib )
GloBalFree( hDib )
DeleteObject( hBmp )
RETURN nil
*

* Now i'm tring to convert the BMP file to JPG file....any help ?

by Romeo
Tue Oct 13, 2015 9:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save all the Screen to BMP
Replies: 13
Views: 2013

FISAVEIMG() FILOAD() str 0 error

Hi ! 1. // comes from image.prg static function FISAVEIMG( cSrcFile, cDstFile, nDstFormat, nQuality ) local nSrcFormat, hDib, hDib2, lOk := .f. DEFAULT nQuality := 0 if LoadFreeImage() > 32 nSrcFormat = FIGETFILETYPE( cSrcFile, 0 ) hDib = FILOAD( nSrcFormat, cSrcFile, 0 ) hDib2 ...
by ShumingWang
Sat Apr 25, 2015 10:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FISAVEIMG() FILOAD() str 0 error
Replies: 2
Views: 556

Re: How to create remote desktop viewver within network ?

... screen into a bitmap: METHOD SaveToBmp( cBmpFile ) CLASS TWindow   local hBmp := WndBitmap( ::hWnd )   local hDib := DibFromBitmap( hBmp )   DibWrite( cBmpFile, hDib )   GloBalFree( hDib )   DeleteObject( ...
by Antonio Linares
Tue Aug 26, 2014 7:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to create remote desktop viewver within network ?
Replies: 3
Views: 778

Re: oGraph- how to save into bmp in silent mode

... have you tried that? I haven't tried it but I don't see anything that make it to be not silent. METHOD Save2Bmp( cFile ) CLASS TGraph LOCAL hBmp, hDib DEFAULT cFile := "TGraph.Bmp" hBmp := WndBitmap( Self:hWnd ) hDib := DibFromBitmap( hBmp ) DibWrite( cFile, hDib ) GloBalFree( hDib ) ...
by rhlawek
Sat Aug 16, 2014 12:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oGraph- how to save into bmp in silent mode
Replies: 7
Views: 2192

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

... Alphablended works ONLY with 32 bpp !!! We can check, if there is a alpha-channel if NO = hDib2 = FICNV24( hDib ) if YES = hDib2 = FICONVTO32( hDib ) the needed changes in class TImage : METHOD SaveImage( cFile, nFormat, nQuality ) CLASS ...
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: 2022

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

... to output.png: *-------------------------------------------------------------------------------------------------------------------------------- hDib = FILOAD( nSrcFormat, cSrcFile, 0 ) // load "input.png" !!?? lOk = FISAVE( nDstFormat, hDib, cDstFile, 0 ) // when PNG is loaded from ...
by bosibila
Sun Jun 22, 2014 8:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a alpha-channel, save and resize a bitmap
Replies: 5
Views: 2022

Re: FastReport LoadImageFromHbVar

found! DibToStr( hDib )

thanks

Marcelo
by Marcelo Via Giglio
Fri Apr 18, 2014 2:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FastReport LoadImageFromHbVar
Replies: 8
Views: 1741

Re: MakeThumbNail en FreeImage

Carlos,

Una vez hayas obtenido el hDib del Thumbnail, lo puedes salvar a disco asi:

DibWrite( cNombreFichero, hDib )
by Antonio Linares
Thu Dec 19, 2013 11:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: MakeThumbNail en FreeImage
Replies: 7
Views: 1996

Re: Problemas con Tprinter y PDF

... grandes, son muchos de 1 pàgina sin imágenes de unos 130Kb cada uno más o menos. He visto que el error se da en la línea: "cBuf := DibToStr( hDib )" de la función Emf2Jpeg() del fichero prv2pdf.prg Mi mail: siperono @ gelbla . com
by FiveWiDi
Sun Dec 01, 2013 4:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con Tprinter y PDF
Replies: 4
Views: 911

Re: "Snap" for Clipper

...  2929  2938  2944  2946                   2954  2962  2963  2964  2966  2973  3751  4146! 4148 HDCCHILD                WINDOW.PRG      530   533 HDIB                    WINDOW.PRG     2014  2016  2017 HDROP                  WINDOW.PRG      562  1535  1540  1541  1544 HELPF1()               (function ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 9269
Next

Return to advanced search