Search found 258 matches: hbmp

Return to advanced search

Re: FW_SaveImage

I wanted to divide the hBmp into 3 parts - 33%, 33% and 34%
How can I do this using the FW_Transform Bitmap function ?
by Natter
Fri Feb 16, 2024 9:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SaveImage
Replies: 8
Views: 450

Re: FW_SaveImage

... which can be saved to a file directly wih MEMOWRIT if cType is .T., then the result type is the type of the first image. Is it possible to split hBmp into several parts and save them as separate files ? FW_TransformBitmap( hBmp, aCrop ) --> hCroppedBmp
by nageswaragunupudi
Thu Feb 15, 2024 3:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SaveImage
Replies: 8
Views: 450

Re: FW_SaveImage

Yes, your example works well. But files in A1 and A0 format do not want to be saved from my program :cry:

I am trying to make an option with the creation of several bitmap files and their subsequent gluing.
Is it possible to split hBmp into several parts and save them as separate files ?
by Natter
Thu Feb 15, 2024 11:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_SaveImage
Replies: 8
Views: 450

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: Icon in Webview

... To use this method I need to use hb_base64encode() , but I don't understand how to do it for hBmp:=BmpFromIcon(EXTRACTASSICON( 0, "Name.pdf", @pol)) :(
by Natter
Sun May 28, 2023 11:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Icon in Webview
Replies: 5
Views: 378

Re: Libretia Grafica interna o externa moderna ...

... Cristobal por sus respuestas Cristobal, para usar las Google Chart debo usar TWebView, correcto ?? No, por qué Lo bueno es que puedes tener el hBmp del gráfico y ponerlo donde quieras ( como ves en el .exe que hago la demo en un xbrowse ), aunque si es en entorno web le sacarás todo el "partido" ...
by cnavarro
Tue Apr 25, 2023 7:21 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Libretia Grafica interna o externa moderna ...
Replies: 7
Views: 587

Unstable screenshot acquisition

... I save a screenshot to the clipboard.  SendKey(VK_SNAPSHOT)  syswait(0.1)  OpenClipboard (getdesktopwindow())  hBmp:= GetClpData(2) && CF_BITMAP  CloseClipboard()? hBmp..............DeleteObject(hBmp) For some reason, it works ...
by Natter
Tue Apr 11, 2023 12:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Unstable screenshot acquisition
Replies: 4
Views: 462

Re: Save Desktop into a

FW_SaveImage(hBmp, "my.bmp") or SaveWindow(hBmp, "my.bmp", width, height)
by Natter
Fri Mar 03, 2023 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Save Desktop into a
Replies: 7
Views: 728

Re: ¿Cómo insertar una imagen dentro de otra imagen?

... 1. Do we have to save the first image with layover and then do the function with the new image and next layover ? etc.... 2. Or can we use the hBmp and do the conversion in 1 loop (No idea for the source sample ?)
by Marc Venken
Sun Jan 08, 2023 10:09 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Cómo insertar una imagen dentro de otra imagen?
Replies: 8
Views: 647

Re: Gluing bitmaps

> FW_SaveImage( hBmp, pr1 ) // cSave can be bmp,jpg,png

Ambiguous reference 'PR1'
by Antonio Linares
Wed Dec 14, 2022 11:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Gluing bitmaps
Replies: 29
Views: 1371

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

... 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 := 0 if nAncho ...
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: 914

Re: Associated Application ICONS

hi,
hua wrote:Any idea how to assign them to a BTNBMP?

i have not work with CLASS TBtnBmp() yet

when look into Soure i found
//
// if user has directly assigned hBitmapX
//

i guess you can use "o:hBmp" to assign Result a hBitmap ... but i´m not sure about hIcon (from ICON_READ() )
by Jimmy
Thu Nov 03, 2022 12:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Associated Application ICONS
Replies: 9
Views: 733

Re: get hBitmap from Image

hi, hBmp:=oWnd:ReadImage(xPt)[1] YES thx, now i can load IMAGE into Imagelist :D after > 100 Image it begin to fail ... RAM is going to Limit (32 Bit OS) --- it take a long Time to load about 800 Image from some Kb up 2.5 ...
by Jimmy
Thu Oct 20, 2022 7:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: get hBitmap from Image
Replies: 14
Views: 719

Re: get hBitmap from Image

Hi, Jimmy !

FW_ReadImage(NIL, xPt) //xPt - path+file

or so

hBmp:=oWnd:ReadImage(xPt)[1]
by Natter
Thu Oct 20, 2022 6:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: get hBitmap from Image
Replies: 14
Views: 719

Re: Frase se ajuste a un ancho

Cristobal, Aparece este error al correr tu ejemplo: Error description: Error BASE/1004 No exported method: HBMP Args: [ 1] = U Stack Calls =========== Called from: => HBMP( 0 ) Called from: .\source\classes\TGDIPLUS.PRG => GRAPHICS:DRAWIMAGE( 158 ) Called from: c:\fwteam\samples\crist.prg ...
by Antonio Linares
Fri Oct 07, 2022 11:05 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Frase se ajuste a un ancho
Replies: 22
Views: 2672
Next

Return to advanced search