Search found 1256 matches: resize

Searched query: resize

by cnavarro
Wed Mar 12, 2025 6:52 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TImage Class
Replies: 4
Views: 338

Re: TImage Class

... scanner only produces JPG instead of BMP. However I cannot get the Method RotateImage to work it says message not found, and I cannot seem to resize the image, does this work, or am I doing something wrong.

Thanks,


There are some FreeImage DLLS in which the Rotate function does not appear ...
by Antonio Linares
Wed Mar 12, 2025 10:16 am
Forum: Artificial Intelligence examples
Topic: agentweb.prg
Replies: 1
Views: 165

agentweb.prg

... 537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Mobile Safari/537.36" )
// oWebView:OpenDevToolsWindow( .T. )

ACTIVATE WINDOW oWnd CENTER ;
ON RESIZE oWebView:SetSize( nWidth, nHeight )

return nil

function JSSearch()

local cCode

TEXT INTO cCode
function WebSearch( cText )
{
document ...
by byron.hopp
Tue Mar 11, 2025 7:21 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TImage Class
Replies: 4
Views: 338

TImage Class

I have been using the TImage class because my scanner hardware died, and the other scanner only produces JPG instead of BMP. However I cannot get the Method RotateImage to work it says message not found, and I cannot seem to resize the image, does this work, or am I doing something wrong.

Thanks,
by Silvio.Falconi
Mon Mar 10, 2025 8:12 am
Forum: FiveWin for Harbour/xHarbour
Topic: also error End on Btnbmp
Replies: 0
Views: 102

also error End on Btnbmp

... buttons which are generally only three in other situations they are 5 and to avoid always having to rewrite them and consequently set them in the resize function of the dialog I thought of making a small class that does nothing but insert the buttons

so in the procedure I use I only have to load ...
by dutch
Wed Mar 05, 2025 4:28 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

Re: FW_Saveimage() memory leak issue

... if !lIsDir(cCurDir+'TEMP')
lMkDir(cCurDir+'TEMP')
endif

cTempPath := cCurDir+'TEMP\'

DEFINE WINDOW oWnd FROM 0, 0 TO 400, 600 PIXEL TITLE 'Test Resize Image'

oWnd:SetFont( oFont )

@ 100, 100 BUTTON oBtn PROMPT 'Run Now' SIZE 80, 40 PIXEL ACTION ReSizeGstImg() // TestBrow() //

ACTIVATE ...
by karinha
Wed Mar 05, 2025 2:13 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

Re: FW_Saveimage() memory leak issue

... 200000, 15, ;
IIF( Filesize( cFile ) > 150000, 20, 25 ) )

IF Filesize( cFile ) >= 32768 // 65536

oImage := GdiBmp():New( cFile )

oImage:Resize( oImage:GetWidth() / 1.3, oImage:GetHeight() / 1.3 )
oImage:Save( cNewFile )

oImage:End()

SYSREFRESH()

aImg := Fw_ReadImage( NIL, cFile ...
by dutch
Wed Mar 05, 2025 1:54 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

Re: FW_Saveimage() memory leak issue

... iif(filesize(cFile)>150000, 20, 25 ))

// if filesize(cFile) >= 32768 // 65536

oImage := GdiBmp():New( cFile )
// ? oImage:GetWidth()
oImage:Resize( oImage:GetWidth()/1.3, oImage:GetHeight()/1.3 )
oImage:Save( cNewFile )
oImage:End()

aImg := Fw_ReadImage( nil, cFile )
// xbrowse( aImg ...
by dutch
Wed Mar 05, 2025 1:48 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

Re: FW_Saveimage() memory leak issue

... feedback.

Ok, first lets try to identify where the memory leak comes from.

Please comment out this section and run your code again:
/* oImage := GdiBmp():New( cFile )
oImage:Resize( oImage:GetWidth()/1.3, oImage:GetHeight()/1.3 )
oImage:Save( cNewFile )
oImage:End()
*/

waiting for your news
by cnavarro
Wed Mar 05, 2025 10:44 am
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

Re: FW_Saveimage() memory leak issue

... iif(filesize(cFile)>150000, 20, 25 ))

// if filesize(cFile) >= 32768 // 65536

oImage := GdiBmp():New( cFile )
// ? oImage:GetWidth()
oImage:Resize( oImage:GetWidth()/1.3, oImage:GetHeight()/1.3 )
oImage:Save( cNewFile )
oImage:End()

aImg := Fw_ReadImage( nil, cFile )
// xbrowse( aImg ...
by Antonio Linares
Wed Mar 05, 2025 6:53 am
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

Re: FW_Saveimage() memory leak issue

... your feedback.

Ok, first lets try to identify where the memory leak comes from.

Please comment out this section and run your code again:
/* oImage := GdiBmp():New( cFile )
oImage:Resize( oImage:GetWidth()/1.3, oImage:GetHeight()/1.3 )
oImage:Save( cNewFile )
oImage:End()
*/

waiting for your news
by dutch
Wed Mar 05, 2025 2:17 am
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

Re: FW_Saveimage() memory leak issue

Dear Antonio,

I replaced as your recommend but It does not help. I try to resize the image for 500 images. The memory was started is 40MB and after resized take 1,400MB.
Antonio Linares wrote: Tue Mar 04, 2025 6:23 pm Dear Dutch,

Please replace Memory( -1 ) with:

SysRefresh()
hb_gcAll()
by dutch
Tue Mar 04, 2025 5:09 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FW_Saveimage() memory leak issue *Fixed*
Replies: 15
Views: 5935

FW_Saveimage() memory leak issue *Fixed*

... filesize(cFile)>200000,15, iif(filesize(cFile)>150000, 20, 25 ))

if filesize(cFile) >= 32768 // 65536

oImage := GdiBmp():New( cFile )
oImage:Resize( oImage:GetWidth()/1.3, oImage:GetHeight()/1.3 )
oImage:Save( cNewFile )
oImage:End()

aImg := Fw_ReadImage( nil, cFile )
FW_SaveImage( aImg[ 1 ...
by jgabri
Fri Feb 28, 2025 7:52 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Error Nuevo Fwh 25.01
Replies: 4
Views: 377

Error Nuevo Fwh 25.01

... oGemini:getValue() ) + "')",;
cAnswer := StrTran( cAnswer, Chr( 10 ), "" ),;
oWebView:Eval( cAnswer ) }

ACTIVATE WINDOW oWnd CENTER ;
ON RESIZE oWebView:SetSize( nWidth, nHeight )

oGemini:End()

return nil


Me arroja los siguientes errores, que estoy haciendo mal ?

Un saludo y mil ...
by Antonio Linares
Tue Feb 25, 2025 8:39 am
Forum: FiveWin para Harbour/xHarbour
Topic: Curso virtual implementación IA en nuestras aplicaciones
Replies: 141
Views: 113344

Re: Curso virtual implementación IA en nuestras aplicaciones

... cAnswer | oGemini:Send( aInfo[ 1 ] ),;
cAnswer := "sendResponse('" + hb_Utf8ToStr( oGemini:getValue() ) + "')",;
cAnswer := StrTran( cAnswer, Chr( 10 ), "" ),;
oWebView:Eval( cAnswer ) }

ACTIVATE WINDOW oWnd CENTER ;
ON RESIZE oWebView:SetSize( nWidth, nHeight )

oGemini:End()

return nil
by ralph
Thu Feb 06, 2025 4:41 pm
Forum: FiveWin para Harbour/xHarbour
Topic: WEBVIEW2 una observación
Replies: 6
Views: 1559

Re: WEBVIEW2 una observación

Me pasaba lo mismo.
Le quité la clausula ON RESIZE y ya no se sale del sistema.

Code: Select all | Expand

ACTIVATE WINDOW oWnd CENTER 

oWebView:End()