This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, April 30, 2008 3:13:37 AM(UTC)
Groups: Registered
Posts: 17
Hello.
I Use Leadtool V15(15.0.1.3) and VB.Net 2005
I load TIF File (16bpp, Grayscale) and draw annotations on the image
I burn annotations on this image then, the image change into 24bpp.
I use this code
--------------------------------------------------------
For i = 0 To pBox.Objects.Count - 1
Dim obj As AnnObject
obj = pBox.Objects(i)
obj.Draw(pImg.CreateGdiPlusGraphics.Graphics)
Next
--------------------------------------------------------
'pbox is annotation container
'pImg is RasterImage(16bpp TIF Image)
I want to keep bitperpixel of the image
How to do?
please help me.
ps. I don't use automation
#2
Posted
:
Wednesday, April 30, 2008 5:43:33 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
If you want to convert the image back to 16-bit grayscale, you can use the GrayscaleCommand Class to change the BBP.
#3
Posted
:
Thursday, May 1, 2008 4:48:00 PM(UTC)
Groups: Registered
Posts: 17
I mean not "Convert" but "Keep"
When I draw annotations on the image, is the image changed to 24bpp always?
#4
Posted
:
Monday, May 5, 2008 6:05:32 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You
can work around this by creating a temporary image to do the realize on, it
should be something like this:
-
Create a new bitmap with a black or white color.
-
Transfer the Annotations to the new bitmap.
-
Realize the annotation in the new bitmap.
-
Use the GrayscaleCommand to convert the new image to 16-bit.
-
Set a region to the non-blank area using AddColorToRegion Method.
- Copy the realize image to the original bitmap using
the CombineCommand Class.
#5
Posted
:
Tuesday, May 6, 2008 4:57:58 PM(UTC)
Groups: Registered
Posts: 17
Thank you for your help :)
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.