Search found 36 matches: dibfrombitmap

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

Re: Unstable screenshot acquisition

https://forums.fivetechsupport.com/viewtopic.php?f=3&t=17946&p=94733&hilit=dibfrombitmap&sid=4145d4cab4353c133fcf645a3fabcfed&sid=475b5970acea408a72316edfff46f630#p94733 https://forums.fivetechsupport.com/viewtopic.php?f=6&t=17947&p=93824&hilit=dibfrombitmap&sid=4145d4cab4353c133fcf645a3fabcfed&sid=475b5970acea408a72316edfff46f630#p93824 ...
by karinha
Wed Apr 19, 2023 3:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Unstable screenshot acquisition
Replies: 4
Views: 463

Re: Gluing images

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

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

Re: Ayuda cpm hbzebra.lib

... ) && 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: 2651

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

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

Re: How to create remote desktop viewver within network ?

... into a bitmap: METHOD SaveToBmp( cBmpFile ) CLASS TWindow   local hBmp := WndBitmap( ::hWnd )   local hDib := DibFromBitmap( hBmp )   DibWrite( cBmpFile, hDib )   GloBalFree( hDib )   DeleteObject( hBmp ...
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: 723

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

... 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 ) 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: 2037

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

... ) if YES = hDib2 = FICONVTO32( 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 ...
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: 1879

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

Uwe,

I think that FWH function DibFromBitmap() may not be properly saving the alpha channel.

You can review its source code here:
source\winapi\dibbmp.c

I guess we will have to google about it, or maybe FreeImage has a function that may help us...
by Antonio Linares
Sun Jun 22, 2014 12:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to keep a alpha-channel, save and resize a bitmap
Replies: 5
Views: 1879

Re: "Snap" for Clipper

... ?)    WINDOW.PRG      552  3658 DESTROYWINDOW()        (function  in ?)    WINDOW.PRG     3609 DIALOG                  WINDOW.PRG     3892  3901 DIBFROMBITMAP()        (function  in ?)    WINDOW.PRG     2014 DIBWRITE()             (function  in ?)    WINDOW.PRG     2016 DLL                   ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6700

Re: RPreview mal en xp

Carlos,

"Dib No Valido"

No entiendo de "C" pero esto me hace pensar que falla en la función "HB_FUNC( DIBFROMBITMAP )" contenida en el "dibbmp.c"

Como decía el Chapulín Colorado: Y ahora, ¿Quién podrá ayudarme?.

Gracias.

Rolando :D
by rolando
Fri Oct 11, 2013 4:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: RPreview mal en xp - SOLUCIONADO (a medias)
Replies: 52
Views: 11457

Re: Crear un Objeto

...  ReleaseDC( 0, hDC )return hBmp  Para guardarlo en un fichero, primero tenemos que pasarlo a DIB de esta forma: hDib = DibFromBitmap( hBmp ) lo escribimos en un fichero: DibWrite( cNombreFichero, hDib ) Liberamos la memoria del DIB: GlobalFree( hDib ) y liberamos la ...
by Antonio Linares
Tue Sep 17, 2013 1:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Crear un Objeto
Replies: 19
Views: 2759

Re: Code Bar PDF417 ó QR Code (solucionado)

... generado. ¿podeis ayudarme en esta tarea?. ¿Como hago para grabar el bmp con el codigo de barras en el disco? ASI SE CREA EL BMP EN DISCO: hDib := DibFromBitmap( oCode:hCodeBar ) DibWrite( "barras.bmp", hDib ) saludos shock:
by José Vicente Beltrán
Tue Mar 01, 2011 10:21 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Code Bar PDF417 ó QR Code
Replies: 50
Views: 13452
Next

Return to advanced search