Page 1 of 1
check size and resize image
Posted: Wed Feb 29, 2012 2:54 pm
by jairpinho
hello everyone!
I need to know the size of an image and then resize the image to a lower tamnho anyone know how to do this without using any external dll only with hmg
Re: check size and resize image
Posted: Wed Feb 29, 2012 3:30 pm
by danielmaximiliano
Re: check size and resize image
Posted: Wed Feb 29, 2012 3:40 pm
by jairpinho
Thanks daniel missing only resize the image
Re: check size and resize image
Posted: Wed Feb 29, 2012 4:02 pm
by danielmaximiliano
jairpinho wrote:Thanks daniel missing only resize the image
rescale a imagem, utilizar FreeImage exemplos estão em hb31\contrib\hbfimage\test
hb31= Harbour Nightly
Manual Freeimage :
http://sourceforge.net/projects/freeima ... f/download
Re: check size and resize image
Posted: Wed Feb 29, 2012 4:37 pm
by jairpinho
HMG can not compile with an example of this native lib and HMG or have to add the project libs =
Re: check size and resize image
Posted: Wed Feb 29, 2012 6:12 pm
by danielmaximiliano
jairpinho wrote:HMG can not compile with an example of this native lib and HMG or have to add the project libs =
Ola Jair:
Neste exemplo do Sr. Grigory Filatov
http://hmgforum.com/download/file.php?id=510
uso IDE HMG.3.0.40 compila perfeito, usá-lo para alterar o seu projecto
Re: check size and resize image
Posted: Wed Feb 29, 2012 7:12 pm
by jairpinho
Daniel did not want to use External .dll, there is a way to make HMG.
Also need to know the file size.
Re: check size and resize image
Posted: Thu Mar 01, 2012 4:30 pm
by salamandra
Hi Jair

,
You can get the image size using Grigory´s code,
viewtopic.php?f=5&t=2267&p=19584&hilit=image#p19584
but AFAIK you can´t resize it using ONLY HMG.
Alternatively you can Release & Define this image control again.
[]´s Salamandra