NO

Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Beginner questions / Free Image library
« Last post by HellOfMice on October 27, 2024, 04:19:21 PM »
Hello the world.


Do you know a free images library, except GDI+ that I could interface with Pelle's C?
I have read, on this forum, a post on OpenCV, but I did not understand.


I have found Allegro but one must install GNOME, not possible.


Thank you for your help


Grincheux
72
Assembly discussions / Image viewer
« Last post by Vortex on October 26, 2024, 08:39:06 PM »
A quick example of running the image viewer to display an image :

Code: [Select]
include     ImageView.inc
include     CstrMacro.asm       

.data?

CurDir      db 64 dup(?)
buffer      db 200 dup(?)
hLib        dd ?
hModule     dd ?

.code

start:

    invoke  GetModuleHandle,0
    mov     hModule,eax
   
    invoke  GetCurrentDirectory,64,ADDR CurDir
    invoke  lstrcat,ADDR CurDir,@Cstr("\ForumLogo.png")

    invoke  UnicodeStr,ADDR CurDir,ADDR buffer

    invoke  LoadLibrary,@Cstr("shimgvw.dll")
    mov     hLib,eax

    invoke  GetProcAddress,eax,\
            @Cstr("ImageView_Fullscreen")

    push    SW_NORMAL
    push    OFFSET buffer
    push    hModule
    push    0
    call    eax

    invoke  FreeLibrary,hLib

    invoke  ExitProcess,0

UnicodeStr  PROC USES esi src:DWORD,dest:DWORD

    mov     esi,src
    mov     edx,dest
    xor     eax,eax
    sub     eax,1
@@:
    add     eax,1
    movzx   ecx,BYTE PTR [esi+eax]
    mov     WORD PTR [edx+eax*2],cx
    test    ecx,ecx
    jnz     @b
    ret

UnicodeStr  ENDP

END start
73
Windows questions / Re: Python3.dll
« Last post by HellOfMice on October 25, 2024, 04:17:58 PM »
Very interesting.


thank you :o :o
74
Assembly discussions / Re: Poasm and FreeBASIC cooperation
« Last post by Vortex on October 23, 2024, 09:14:06 PM »
The reversed version of the first example, FreeBASIC example calling a Poasm module loading a .jpg image.
75
General discussions / Re: miniz 3.0.2
« Last post by John Z on October 23, 2024, 11:31:54 AM »
example3.c with modified richgel999's miniz code

test_meta_xml is kuba zip version
32-bit version miss first char from filename  :(

Great work TimoVJL the 64 bit version created a meta.xml zip that was accepted by LibreOffice !  I'll look to see what I missed.  I'll incorporate your version first and see if I successfully make a completed spreadsheet .ods with the new 64 bit version.

John Z
76
General discussions / Re: miniz 3.0.2
« Last post by Vortex on October 23, 2024, 11:14:38 AM »
Hi Timo,

Quote
A that example3.c don't make zip, only pack file

If not zip, what should be the correct file extension?
77
General discussions / Re: miniz 3.0.2
« Last post by John Z on October 23, 2024, 11:13:52 AM »
Oh - did not know that - Sorry

Thanks,

John Z
78
General discussions / Re: miniz 3.0.2
« Last post by TimoVJL on October 23, 2024, 11:13:03 AM »
A that example3.c don't make zip, only pack file.

Test Zip files online for free
79
General discussions / Re: miniz 3.0.2
« Last post by John Z on October 23, 2024, 11:10:27 AM »
Thanks TimoVJL,

I have grabbed your work and will see how - appreciate the test, and the help, and your time!

Vortex,  sorry to report that the zip file created with Msys2 version of zip, turns out to not be a valid zip file. 
Even the header characters are wrong.  7z, Zip, etc nothing can open it.  Not sure what went wrong - - Thanks
for trying it though!  I might still try Msys2 later.

John Z
80
General discussions / Re: miniz 3.0.2
« Last post by Vortex on October 23, 2024, 11:05:30 AM »
Hi Timo,

Your example3 built and mine are producing the same zip file, no problem. As you said, test_meta_xml.exe is omitting the first character of the filename.
 
Pages: 1 ... 6 7 [8] 9 10