Hi Frank
Exactly what I needed - funnily enough I had experimented with
GetThumbnailImage but as your link points out
The function GetThumbnailImage can be used to get a resized image, but
the result may come with less quality.
The sample below does the same thing, but creates an image with a better
quality.
Many thanks - problem solved.
Paul
On 27/06/2022 14:48, Frank Cazabon wrote:
Does this site help?
VfpImaging VFP tips and tricks blog: RESIZE IMAGES WITH VFP9 and GDI+
<http://vfpimaging.blogspot.com/2006/02/resize-images-with-vfp9-and-gdi_1706.html>
Frank.
Frank Cazabon
On 27/06/2022 8:40 am, Paul Newton wrote:
Unfortunately Alan's ResizeImage function won't work in this case.
The source is 256x256 and the required target is 180x140. Using
ResizeImage with the required target size produces an image which is
140x140.
I am sure that there is a way to do this with GDIPlusX. By the way,
my original BMP is created on-the-fly (using GDIPlusX) and never has
a disk presence (although I could save it to disk).
Paul
On 27/06/2022 12:59, Alan Bourke wrote:
Paul
Take a look at the Windows Image Acquisition API, the link below is
a method that I use to resize images from a signature pad.
https://gist.github.com/AlanPBourke/b4ad122636978245a678a65155ba51e7
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/093897b7-ba77-2677-94f8-4312716b7...@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.