This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Saturday, December 10, 2011 6:22:07 PM(UTC)
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.
#2
Posted
:
Monday, December 12, 2011 7:18:00 AM(UTC)
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)
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)
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.