Search found 52 matches: dibwrite

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: Gluing images

... bitmaps on hDCMem this way: hBmp = ReadBitmap( 0, "name.bmp" ) PalBmpDraw( hDCMem, nRow, nCol, hBmp ) Finally you save it and clean: DibWrite( cFileName, DibFromBitmap( hBitmap ) ) SelectObject( hDCMem, hPrev ) DeleteObject( hBitmap ) DeleteDC( hDCMem ) oDlg:ReleaseDC()
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: crop an Image

when I save the image sometimes it crash Called from DIBWRITE(0) Called from TIMAGE:SAVEIMAGE(191) in .\source\classes\IMAGE.PRG Called from CROP_IMAGE(161) in test.prg Called from MOUSEMOVE(144) in test.prg Called from (b)GETIMAGE(104) in test.prg ...
by Silvio.Falconi
Thu Nov 02, 2017 11:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: crop an Image
Replies: 28
Views: 5173

Re: Ayuda cpm hbzebra.lib

... 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: 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: 7923

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

Re: Leer pixeles de un bitmap monocromo

... días, Sigo atascado con el problema, ¿ Cómo consigo el handle del nuevo bitmap a partir del hDCMemResultante, para luego guardarlo a disco con DibWrite() ? Buscando ejemplos de createDiBitmap en fwh, veo que usa freeimage, pero me devuelve un handle del bitmap a cero si lo intento así. ¿Alguien ...
by jmartial
Fri Jul 24, 2015 7:51 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 5248

Re: Leer pixeles de un bitmap monocromo

... nueva medida (es decir, lo he cortado). ¿ Cómo consigo el handle del nuevo bitmap a partir del hDCMemResultante, para luego guardarlo a disco con DibWrite() ?
by jmartial
Thu Jul 23, 2015 12:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Leer pixeles de un bitmap monocromo
Replies: 30
Views: 5248

Re: How to create remote desktop viewver within network ?

... ) CLASS TWindow   local hBmp := WndBitmap( ::hWnd )   local hDib := DibFromBitmap( hBmp )   DibWrite( cBmpFile, hDib )   GloBalFree( hDib )   DeleteObject( hBmp )return ( File( cBmpFile ) ...
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

... cFile ) CLASS TGraph LOCAL hBmp, hDib DEFAULT cFile := "TGraph.Bmp" hBmp := WndBitmap( Self:hWnd ) hDib := DibFromBitmap( hBmp ) DibWrite( cFile, hDib ) GloBalFree( hDib ) DeleteObject( hBmp ) RETURN ( FILE( cFile ) ) Best regards, Robb
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 ?

... nQuality ) CLASS TImage local hDib := DibFromBitmap( ::hBitmap, ::hPalette ) local cTempFile := cTempFile() local lSaved, lAlpha := ::HasAlpha() DibWrite( cTempFile, hDib ) GloBalFree( hDib ) lSaved = FIConvertImageFile( cTempFile, cFile, nFormat, nQuality, lAlpha ) FErase( cTempFile ) return ...
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

New FTDN November/Noviembre 2013 (FWH 13.11)

... added classdata lRegistered * New: added layout.ch header file, useful xbase commands to TLayout class * Fix: Memory leak fixed in function DibWrite(). Thanks to Günther: http://forums.fivetechsupport.com/viewtopic.php?p=154281#p154281 * Fix: Fixed missing checkings in function FWOPENPNGFILE(), ...
by Antonio Linares
Fri Dec 20, 2013 5:18 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN November/Noviembre 2013 (FWH 13.11)
Replies: 0
Views: 1384

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: "Snap" for Clipper

...  in ?)    WINDOW.PRG     3609 DIALOG                  WINDOW.PRG     3892  3901 DIBFROMBITMAP()        (function  in ?)    WINDOW.PRG     2014 DIBWRITE()             (function  in ?)    WINDOW.PRG     2016 DLL                    WINDOW.PRG     2628 DRAGACCEPTFILES()      (function  in ?)   ...
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