flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > JPEG screenshot with GDI+ |
Author |
|
pete 10 Jul 2009, 15:59
Thank you for the example!
|
|||
10 Jul 2009, 15:59 |
|
r22 10 Jul 2009, 18:20
Works on my WinXP64.
I'd suggest you add some comments to the code and have it placed in the FASM examples section. |
|||
10 Jul 2009, 18:20 |
|
eskizo 10 Jul 2009, 19:11
perfect job! thankyou
|
|||
10 Jul 2009, 19:11 |
|
heizzpep 09 Jul 2012, 06:22
works on my win7 x64 and x86.
very nice thx! |
|||
09 Jul 2012, 06:22 |
|
hopcode 09 Jul 2012, 07:51
mmmh, vista64 ok, i like open source that works!
it should be packed in the main package. _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
09 Jul 2012, 07:51 |
|
bzdashek 10 Jul 2012, 21:13
Cool story, no need in those libraries. Thanks
|
|||
10 Jul 2012, 21:13 |
|
Madis731 12 Jul 2012, 11:01
Weird thing is that nothing else besides TIFF and JPEG are supported. What about BMP, PNG, GIF? Do we need to make anything special for that?
EDIT: Sorry, I already found the bug. Line 49 says: mov ecx,11, but instead should say mov ecx,(encoder_clsid-encoder_mimetype) shr 1 or something. |
|||
12 Jul 2012, 11:01 |
|
wolf 06 Feb 2013, 16:03
Thanks a lot! very useful code! I just tried it out.
The line ecx=11 should be ecx=strlen(encoder_mimetype)+1 -- image/tiff / jpeg is 11 then -- bmp /gif / png = 10 But 10 works for all possible mimetypes for the moment. The MessageBox shows all 5 possible mimetypes when you define encoder_mimetype du 'image/png', which is the last one or a non existing one like du 'image/abc'. Code: scan_encoders: mov esi,[ebx+ImageCodecInfo.MimeType] mov edi,encoder_mimetype invoke MessageBox,0,esi,0,0 mov ecx,10 repe cmpsw je .encoder_found |
|||
06 Feb 2013, 16:03 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.