Jump to content

Recommended Posts

Posted (edited)

$ret = DllCall($dll, 'int', '_FreeImage_SaveU@16', 'int', $outext, 'ptr', $hImage[0], 'wstr', $out, 'int', 0x0800)

aggixx, why did you not read the documentation, everything is written?

0x0800 - TIF without compression

Sweet, it works! Now I just have to improve the recognition...

Yeah, I figured it was possible, just didn't think to check the documentation.

Thanks so much Yashied!!!

Edited by aggixx
  • 2 years later...
Posted (edited)

how I can convert a jpg or bmp image to GIF 4, 8 bit dithering?

;~ /** Dithering algorithms.
;~ Constants used in FreeImage_Dither.
;~ */
;~ FI_ENUM(FREE_IMAGE_DITHER) {
Global Const $FREE_IMAGE_DITHER = "dword"
Global Enum _
        $FID_FS = 0, _  ;// Floyd & Steinberg error diffusion
        $FID_BAYER4x4 = 1, _    ;// Bayer ordered dispersed dot dithering (order 2 dithering matrix)
        $FID_BAYER8x8 = 2, _    ;// Bayer ordered dispersed dot dithering (order 3 dithering matrix)
        $FID_CLUSTER6x6 = 3, _  ;// Ordered clustered dot dithering (order 3 - 6x6 matrix)
        $FID_CLUSTER8x8 = 4, _  ;// Ordered clustered dot dithering (order 4 - 8x8 matrix)
        $FID_CLUSTER16x16 = 5, _    ;// Ordered clustered dot dithering (order 8 - 16x16 matrix)
        $FID_BAYER16x16 = 6 ;// Bayer ordered dispersed dot dithering (order 4 dithering matrix)
;~ };
Edited by nuevito4

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...