PaletteGetColorsCount returns 0

Discussions about image processing and document imaging.
Post Reply
Greg
Posts: 17
Joined: Thu Oct 11, 2012 8:31 am

PaletteGetColorsCount returns 0

Post by Greg » Thu Feb 21, 2013 5:13 pm

Hi

For jpg 24 bits color image, PaletteGetColorsCount returns me 0.

ImageID = oGdPictureImaging.CreateGdPictureImageFromFile(FVCF_ImageTampon)
Trace(oGdPictureImaging.PaletteGetColorsCount(ImageID)) => give 0

Why ?

Thanks.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PaletteGetColorsCount returns 0

Post by Loïc » Thu Feb 21, 2013 7:40 pm

Hello,

Because your image has no color palette.

Let me know if you need further information.

Kind regards,

Loïc

Greg
Posts: 17
Joined: Thu Oct 11, 2012 8:31 am

Re: PaletteGetColorsCount returns 0

Post by Greg » Fri Feb 22, 2013 9:31 am

Hi !

Thanks for answer.

Actually i want to have the color numbers of a image. Is this the good method ?

Isn't palette color the same thing that the colours count of the picture ?

Thanks

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PaletteGetColorsCount returns 0

Post by Loïc » Sat Feb 23, 2013 8:23 pm

Hello Greg,

We don't have such feature to count the number of unique colors in a bitmap. That said, we have implemented it for the next medium release that will be published within 5 days max. The name of the new method will be "CountUniqueColors()"

With best regards,

Loïc

Greg
Posts: 17
Joined: Thu Oct 11, 2012 8:31 am

Re: PaletteGetColorsCount returns 0

Post by Greg » Mon Feb 25, 2013 10:28 am

Perfect !
Have a nice day.
Sincerly yours.

Greg
Posts: 17
Joined: Thu Oct 11, 2012 8:31 am

Re: PaletteGetColorsCount returns 0

Post by Greg » Fri Mar 01, 2013 12:24 pm

Hi Loïc.
Have you please some news for the next release ?
Thanks.
Have a nice week end.
Sincerly yours.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: PaletteGetColorsCount returns 0

Post by Loïc » Fri Mar 01, 2013 12:58 pm

Hello Greg,

We've got an unexpected and unusual additional delay to produce the 9.4. But good new: it will be available on next Monday or on next Tuesday!

Have a nice week end too.

Cheers!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests