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 : Saturday, December 10, 2011 6:22:07 PM(UTC)
razali84

Groups: Registered
Posts: 21


Hi,

i nee to know how to save annotation in color mode.

currently i havemanaged to make annotation on tif image with red color. unfortunately it is saved in grayscale.

please help.
 

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 : Monday, December 12, 2011 7:18:00 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Do you mean that you are burning (realizing) color annotations on an image, but that causes them to become grayscale?
In order to burn color annotation, the image should be 24-bit images so that when you realize the annotation on the image it (the image) will have the color pixels.

If you burn on a grayscale (or black and white) image, the resulting pixels will be limited to the colors of the image. That's why you should convert the image to full-color (24-bit) before burning.

 
#3 Posted : Tuesday, December 13, 2011 1:40:49 AM(UTC)
razali84

Groups: Registered
Posts: 21


can u give me a sample..please.

my situation is open tif image, then anotate the image such as insert red line.

but call codecs.save the red anotation become black.

 
#4 Posted : Tuesday, December 13, 2011 10:43:45 PM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


When you load (before you burn the object), make sure to supply the value of BitsPerPixel as 24 and don't leave it to the default.

This means use an overload of RasterCodecs.Load() method that takes a parameter named bitsPerPixel, such as this:
codecs.Load("file.tif", 24, CodecsLoadByteOrder.Bgr, 1, 1)

 
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.059 seconds.