Author Topic: GDI+ revisited  (Read 2137 times)

NoCforMe

  • Member
  • *****
  • Posts: 1124
Re: GDI+ revisited
« Reply #15 on: February 05, 2022, 09:54:39 AM »
Thanks, but I don't know how to do that here. Let me think about it. Not sure how I mix GDI and GDI+ stuff.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 10583
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: GDI+ revisited
« Reply #16 on: February 05, 2022, 10:04:06 AM »
The attached zip file has 4 images scaled up from 32x32 to 128x128. All done with GDI.

The scaling is done with the following API.

HANDLE CopyImage(
    HANDLE hImage,    // handle to the image to copy
    UINT uType,   // type of image to copy
    int cxDesired,   // desired width of new image
    int cyDesired,   // desired height of new image
    UINT fuFlags   // copy flags
   );

You can thank Vortex for decyphering this one.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: