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 : Wednesday, April 30, 2008 3:13:37 AM(UTC)

Neo.Ko  
Neo.Ko

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

 

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 : Wednesday, April 30, 2008 5:43:33 AM(UTC)

Adam Boulad  
Guest

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)

Neo.Ko  
Neo.Ko

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)

Adam Boulad  
Guest

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)

Neo.Ko  
Neo.Ko

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.

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