Search found 104 matches: savetobmp

Searched query: savetobmp

by Antonio Linares
Wed Aug 09, 2023 6:45 am
Forum: FiveWin for Harbour/xHarbour
Topic: Google API for Charts
Replies: 2
Views: 365

Re: Google API for Charts

... image/png');
const downloadLink = document.createElement('a');
downloadLink.href = screenshotImage;
downloadLink.download = 'screenshot.png';
document.body.appendChild(downloadLink);
downloadLink.click();
document.body.removeChild(downloadLink);


From FWH you may use oWnd:SaveToBmp( cBmpFile )
by MGA
Fri Nov 11, 2022 3:40 pm
Forum: FiveWin for Harbour/xHarbour
Topic: signatur.prg How can I know if the user has signed or not?
Replies: 5
Views: 826

signatur.prg How can I know if the user has signed or not?

... 01, 5 BUTTON "Clear" SIZE 25, 10 PIXEL ACTION oSig:refresh(.t.) OF oDlg

@ 01, 60 BUTTON "Save" SIZE 25, 10 PIXEL OF odlg ;
ACTION ( oSig:SaveToBmp( cFile ), oDlg:End() )

oSig:lWantClick := .T.
oSig:bLButtonUp := { | x, y, z | DoDraw( hDC, y+1, x+1, lPaint := .F. ) }
oSig:bMMoved ...
by Antonio Linares
Mon Oct 11, 2021 10:57 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rectangle as bitmap
Replies: 35
Views: 3361

Re: Rectangle as bitmap

oDlg:aControls[ 1 ]:SaveToBmp( "test.bmp" )
by Antonio Linares
Thu Oct 07, 2021 10:38 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rectangle as bitmap
Replies: 35
Views: 3361

Re: Rectangle as bitmap

oControl:SaveToBmp("test.bmp")

Enviado desde mi SM-M325FV mediante Tapatalk
by Natter
Thu Oct 07, 2021 9:56 am
Forum: FiveWin for Harbour/xHarbour
Topic: Rectangle as bitmap
Replies: 35
Views: 3361

Re: Rectangle as bitmap

I am trying to create a bmp file from an Activex control that is larger than the screen. I tried SaveToBmp(), SaveAsImage(). SaveWindow() . As a result, I get a bmp file of the appropriate size, but containing only the part of the control visible on the screen,.

https://cloud.mail.ru ...
by ukoenig
Fri Jun 04, 2021 9:08 am
Forum: FiveWin for Harbour/xHarbour
Topic: A slider solution to adjust the color brightness ?
Replies: 2
Views: 617

Re: A slider solution to adjust the color brightness ?

... is a given value
Pickvalues := PICK_COLOR( nSlidPos * 22, 8, oBmp ),

because the bitmap is painted is that needed
( save and restore )

oBmp:SaveToBmp( "Picker.bmp" )
hBmp := ReadBitmap( 0, "Picker.Bmp" )

http://www.service-fivewin.de/images/Slider3.jg

#Include "FiveWin.ch ...
by AntoninoP
Sun Mar 28, 2021 1:31 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Print and save an Image
Replies: 7
Views: 1038

Re: Print and save an Image

Silvio,
Would you mind posting how?
Best regards,
Otto
I helped Silvio, we used a modified version of TWindow:SaveToBmp( cBmpFile ), SaveToBitmap uses WndBitmap, I modified it to takes a region of window:

//---------------------------------------------------------------------------//// copied from ...
by ukoenig
Tue Mar 23, 2021 12:00 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Change color in a bmp
Replies: 25
Views: 3876

Re: Change color in a bmp

... FUNCTION FILLCOLOR( oImg, nRow, nCol, nColor )
LOCAL hDC := oImg:getDc()

FloodFill( hDC, nRow, nCol, nil, nColor )
oImg:SaveToBmp( "A.bmp" ) // save the last result
oImg:ReleaseDC()

RETURN NIL

The original test-image

http://www.service-fivewin.de/IMAGES/A ...
by Silvio.Falconi
Sat May 16, 2020 4:02 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with conversion Image on W7
Replies: 7
Views: 986

Problem with conversion Image on W7

... 40)
ext:= aExt[ntipo]
cNewfile:= cFolderTemp+cNewName+ext
FW_SaveImage( hBmp,cNewfile ,90)

then to converte jpg to BMP I made

cFileBmp:= savetobmp(cfileJpg)

Function Savetobmp(cfile)
Local hBmp := FW_ReadImage( nil, cfile )[ 1 ]
FW_SaveImage( hBmp, cfile+".Bmp",90 )
Return cfile


on ...
by ukoenig
Fri Nov 08, 2019 8:53 am
Forum: FiveWin for Harbour/xHarbour
Topic: Missing images in xBrowse
Replies: 12
Views: 2563

Re: Missing images in xBrowse

... what happens

We also do not know if the bitmaps created are valid bitmaps.
1. I did a screenshot

ACTIVATE WINDOW oWnd ;
ON RIGHT CLICK oWnd:SaveToBmp( "test.bmp" )

2. using < PIXELFORMER > the problem is visible.
The filemanager is showing the normal bmp.
Loading the file I'm getting a funny ...
by ukoenig
Thu Nov 07, 2019 3:07 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Missing images in xBrowse
Replies: 12
Views: 2563

Missing images in xBrowse

... they are visible at the bottom on
xBrowse row-selection

http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Xbrwimg5&#46;jpg

saved like

oBmp1:SaveToBmp( c_path2 + "Img64_" + ALLTRIM(STR(nCount[1])) + ".bmp" )

in xBrowse

WITH OBJECT:aCols[ 1 ]
:cDataType := 'F'
:nDataBmpAlign := AL_CENTER ...
by Antonio Linares
Fri Jan 26, 2018 6:53 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Como grabar un codiigo en qr a un Archivo BMP
Replies: 8
Views: 1585

Re: Como grabar un codiigo en qr a un Archivo BMP

Dioni,

Cambia el tamaño de la ventana con:

oWnd:SetSize( 164, 185 )

antes de llamar a:

oWnd:SaveToBmp( "mycode.bmp" )
by nageswaragunupudi
Mon Jan 15, 2018 2:06 pm
Forum: FiveWin for Harbour/xHarbour
Topic: ximage rotate and save
Replies: 13
Views: 2270

Re: ximage rotate and save

if oImage:nZoom == 1 .and. oImage:nRotate == 0
// not modified
else
oImage:SaveToBmp( cBmpFile ) // save rotated / zoomed image to bmp file
endif
by ukoenig
Wed Oct 11, 2017 3:15 pm
Forum: FiveWin for Harbour/xHarbour
Topic: crop an Image
Replies: 28
Views: 5621

Re: crop an Image

... nBottom, nRight, cLabel, oWnd, nClrText,;
// nClrPane, lPixel, lDesign, oFont, lTransparent, nWidth, nHeight )

RETURN( NIL )

// -----------

FUNCTION MAKE_IMAGE( cImgFile )

oGroup:Hide()
oDlg:SaveToBmp( cImgFile ) // Screenshot of full dialogbackground
oGroup:Show()

RETURN( NIL )

regards
Uwe