Page 4 of 4
Re: Digital Image Processing
Posted: Thu Jan 21, 2021 2:38 am
by andyglezl
franco wrote: ↑Thu Jan 21, 2021 1:03 am
Amazing Andy,
Do you think I could take a 2249 kb jpg and resize to 200 kb and still be clear inside hmg this way to redo my internal camera files before
copying and saving them.
mmm...
Bueno, hice una prueba cargando una imagen de 2,143 KB y la salve con este programa y quedó de 565 KB y me parece buena la resolución.
Pero depende que signifique "buena resolución" para cada uno y el fin que le dará a estás imagenes.
*---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mmm ...
Well, I did a test loading a 2,143 KB image and I saved it with this program and it was 565 KB and the resolution seems good.
But it depends on what "good resolution" means for each one and the purpose that it will give to these images.
- prbhmg.JPG (436.83 KiB) Viewed 3883 times
Re: Digital Image Processing
Posted: Thu Jan 21, 2021 3:01 am
by AUGE_OHR
hi,
franco wrote: ↑Thu Jan 21, 2021 1:03 am
Do you think I could take a 2249 kb jpg and resize to 200 kb and still be clear inside hmg this way to redo my internal camera files before copying and saving them.
i wonder why you work with CAM instead of Scanner while a CAM have "too much Color"
if you have a Document you need only Black/White so Size of Image is much smaller when compress using JPG.
Re: Digital Image Processing
Posted: Thu Jan 21, 2021 10:29 am
by franco
I need to take pictures with the camera of a Microsoft go 2 tablet.
The electric motor rewind technicians use the tablets to take pictures of different parts of motors while they rebuild.
They just want to hold tablet and take picture nothing else.
I am waiting for sample picture to post to see if a member (Andy) could show me how to resize with a function inside my program after taking picture.
Re: Digital Image Processing
Posted: Thu Jan 21, 2021 12:31 pm
by mol
the simplest way is to create control IMAGE of requested size, display your picture in this control and save window to a file.
It should be very easy to realize
this is piece of code of Jimmy AUHE_OHR
Code: Select all
Row := 0
Col := 0
Width := BT_ClientAreaWidth("Form_1")
Height := BT_ClientAreaHeight("Form_1")
hBitmap := BT_BitmapCaptureClientArea ("Form_1", Row, Col, Width, Height)
BT_BitmapSaveFile (hBitmap, cFileName, nTypePicture)
BT_BitmapRelease (hBitmap)
look at this topic:
viewtopic.php?f=5&t=6744&p=64793&hilit= ... ile#p64793
Re: Digital Image Processing
Posted: Thu Jan 21, 2021 6:40 pm
by andyglezl
Re: Digital Image Processing
Posted: Thu Jan 21, 2021 8:17 pm
by franco
Holy Cow and WOW,
Thanks to
Andres, Jimmy an Mol
I have this working in a small program. I have shrunk a 3.2mg picture to 652kb. and it is 100% clear for what I need.
I used Mol`s suggestion designed by Jimmy
Amazing and thanks again.
Re: Digital Image Processing
Posted: Fri May 28, 2021 9:10 pm
by andyglezl
Re: Digital Image Processing
Posted: Sat May 29, 2021 9:25 am
by Claudio Ricardo
Mis más sinceras felicitaciones Andy !!!