Projects > Poasm
GDI+ demo
Vortex:
Attached is a GDI+ demo displaying a .PNG image from file
hutch--:
Erol,
Have you done any code that will write a bitmap back to disk as a PNG or JPG ? The only good work I have seen in this area is by Jose Roca in PowerBASIC but I have not had enough life and time to decypher it from PowerBASIC to either 32 bit or 64 bit MASM.
jj2007:
If you just need a job to be done, here is the bare minimum: loads any image file (bmp, jpg, ico, ...) from the commandline and saves it as png.
If you want to use it in a batch file, just rename the Just_a_test.png and continue with the next image.
include \masm32\MasmBasic\Res\MbGui.asm
Event Paint
GuiImageCallback SaveMyImage ; user-defined callback function
GuiImage CL$() ; take image from commandline
EndOfEvents
SaveMyImage:
SaveImageToFile "Just_a_test.png"
invoke SendMessage, hGui, WM_CLOSE, 0, 0 ; say bye bye
ret
GuiEnd
Vortex:
Hi Hutch,
Let me check my archive. I will see what I can do.
Vortex:
Hi Hutch,
I found two Masm examples, one converting a bitmap to jpg and the other one converting a png to bitmap. Later, I will try to code the bitmap to png version.
Navigation
[0] Message Index
[#] Next page
Go to full version