News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Load and save BMP images with image scaling.

Started by hutch--, May 04, 2020, 10:34:08 PM

Previous topic - Next topic

hutch--

Could I impose of some of our members to test this app on bitmaps. I have written a scaling algorithm based on StretchBlt with the HALFTONE setting and it is testing OK on my Win10 box. I have been testing on high res 1920 x 1080 bitmaps and from 100% down to very small the image quality seems to be OK. It will both upscale and downscale and the downscale images look clean and sharp but as expected, an upscaled image never improves on the original.

Biterider

Works fine here (Win 10 - 64bit - Home)


Biterider

Siekmanski

Creative coders use backward thinking techniques as a strategy.

daydreamer

works fine under win10 64bit
I just wonder if it already exist GDI+ function to load RLE compressed file,well its more kinda a save function with RLE that is missing in usual paint program

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

Vortex

Hi daydreamer,

No any constant for bitmaps :

EncoderValueCompressionRle For a TIFF image, specifies the RLE compression method.

https://docs.microsoft.com/en-us/windows/win32/api/gdiplusenums/ne-gdiplusenums-encodervalue

Siekmanski

GDIplus can load and save RLE and many more bit and color types.
In the sources you can find BMP RLE as well.

32bit
http://masm32.com/board/index.php?topic=8483.msg92918#msg92918

64bit
http://masm32.com/board/index.php?topic=8483.msg92942#msg92942
Creative coders use backward thinking techniques as a strategy.

hutch--

This stuff done by Marinus has been super useful, I have so far used this work for both the BMP and JPG code in the 64 bit library and as I get a bit more time I will use more of it.

Siekmanski

 :biggrin: Now working on saving PNG icons and cursors.
Creative coders use backward thinking techniques as a strategy.