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
---

_______________________________________________
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/6e40725f-c07f-0f2c-0bad-8808637a5...@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.

Reply via email to