|
Hello,
I have a jpeg image file that contains multiple images. I extract one image at a time and save to a CCITT G4 image file. (codecs.Save(img, s.writeRi2, RasterImageFormat.CcittGroup4, 1, 1, 1, 1, CodecsSavePageMode.Append))
There are so many filter type commands that I'm not sure which to use to get the black in the CCITT image to look clear and not smugey.
I tried:
IntensityDetectCommand cmd = new IntensityDetectCommand(); cmd.Channel = IntensityDetectCommandFlags.Master; cmd.HighThreshold = 255; cmd.InColor = new RasterColor(255, 255, 255); cmd.LowThreshold = 160; cmd.OutColor = new RasterColor(0, 0, 0); cmd.Run(img);
ContrastBrightnessIntensityCommand command = new ContrastBrightnessIntensityCommand(); command.Contrast = 30;command.Brightness = 0;command.Intensity = 100; command.Run(img);
And several variations of these two but I do not see any change in the way the data looks. The jpeg image is clear but the CCITT image is unreadable. Any suggestions?
|