flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pete
Thank you for the example!
|
|||
![]() |
|
r22
Works on my WinXP64.
I'd suggest you add some comments to the code and have it placed in the FASM examples section. |
|||
![]() |
|
eskizo
perfect job! thankyou
|
|||
![]() |
|
heizzpep
works on my win7 x64 and x86.
very nice thx! |
|||
![]() |
|
hopcode
mmmh, vista64 ok, i like open source that works!
![]() it should be packed in the main package. _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
![]() |
|
bzdashek
Cool story, no need in those libraries. Thanks
|
|||
![]() |
|
Madis731
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. |
|||
![]() |
|
wolf
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 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.