Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, January 21, 2010 12:56:56 AM(UTC)
naveed.anwar

Groups: Registered
Posts: 7


hey,

im using LeadTools v 16.5, .net classes VS 2008,
i want to convert color image to 4 bit GrayScale image, 4 bit Pallete Color Image, 8 bit Pallete Color Image

Please help me ASAP
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, January 21, 2010 8:56:29 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You can create a 4-bit Grayscale image as follows:
Use the GrayscaleCommand Class  and convert the image to 8-bit grayscale, then use the ColorResolutionCommand Class to convert the image to 4-Bit and set the ColorResolutionCommand.PaletteFlags Property to ColorResolutionCommandPaletteFlags.Optimized.

For the 4 and 8 bit colored images, use the ColorResolutionCommand Class to convert the image to 4 or 8 Bit and set the ColorResolutionCommand.PaletteFlags Property to ColorResolutionCommandPaletteFlags.Optimized.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.058 seconds.