LEADTOOLS Support
General
General Questions
Grayscale bitonal tif for display only
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, December 10, 2006 3:31:14 PM(UTC)
Groups: Registered
Posts: 8
Hi,
I am using Leadtools 15 Eval for C#.NET
Is there any way to grayscale an image on display only. This means, the file itself doesn't change, just the viewer.
I heard about the LeadControl.BitonalScaling command but I can't sem to find it, so I assume it doesn't exist for C#.
I also found a post on this forum suggesting to convert th image into 8bpp, which dosn't look like an optimal solution to me, since imag modification is involved and this increases considerably the size of the file.
Is there any solution to my problem ?
Thanks
Guillaume
#2
Posted
:
Sunday, December 10, 2006 11:48:41 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You can't grayscale an image's display only; you have to convert the
pixel data itself. Also, the BitonalScaling property will not
help you because it only works with 1-bit images. Perhaps having
two copies of the image might help? One for display and one for
processing?
#3
Posted
:
Monday, December 11, 2006 10:55:54 AM(UTC)
Groups: Registered
Posts: 8
Hi,
Thanks for your answer. But I actually use 1-bit images. But the thing is that I didn't find the BitonalScaling property ? Does it exist for C# ?
Thanks,
Guillaume
#4
Posted
:
Tuesday, December 12, 2006 12:04:08 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
It is, but it's not called BitonalScaling in the .NET classes.
You need to set RasterImageViewer.PaintProperties.PaintDisplayMode to
ScaleToGray.
#5
Posted
:
Tuesday, December 12, 2006 11:41:43 AM(UTC)
Groups: Registered
Posts: 8
Thanks a lot for your answer, it does exactly what I wanted it to.
Guillaume
LEADTOOLS Support
General
General Questions
Grayscale bitonal tif for display only
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.