T O P I C R E V I E W |
robnic |
Posted - Mar 01 2012 : 04:34:40 Hello,
first of all congratulations to Fabrizio for the improvements in the VLC. The new version seems to be even faster than the old one. I have just upgraded from V2 to V4
Unfortunately i have a problem with the DoPreviews method. In a form i have a TimageEnMIO object linked to a TImageEnMView object. After the image (moncromatic TIFF with faxccitt4 compression) has been acquired by a scanner the user can click in a button and asjust the colors. The code is sipmply theimageEnMIO.proc.DoPreviews(ppeColorAdjust) (it works) Later the image is saved using the code theimageenMio.savefile(..) The image is saved but the color adjust is missing.
Probably i miss something. Any hint ?
Thanks
Roberto |
4 L A T E S T R E P L I E S (Newest First) |
robnic |
Posted - Mar 01 2012 : 09:52:59 Perfect thanks.
Roberto |
fab |
Posted - Mar 01 2012 : 07:42:27 There are several ways. I prefer (used in demo: Multi\MultiView2):
ImageEnMView1.CopyToIEBitmap( idx, ImageEnView1.IEBitmap ); ImageEnView1.Update(); |
robnic |
Posted - Mar 01 2012 : 06:28:41 Ahhhh, thanks. Thats explain everything.
Another small thing.: Having a TImageEnMView and a TImageEnView what's the best way to show in the last one the image currently selected in the TImageEnMView ? Now i use the clipboard (copy in the Mview and past in the view)
thanks
Roberto
|
fab |
Posted - Mar 01 2012 : 04:51:52 Hello, thank you Roberto. pppeColorAdjust works with color images, so your need to save the image as RGB instead of BW: ImageEnMView.MIO.Params[imageindex].SamplesPerPixel := 3; ImageEnMView.MIO.Params[imageindex].BitsPerSample := 8; ImageEnMView.MIO.Params[imageindex].TIFF_Compression := ioTIFF_JPEG; // or another compression ImageEnMView.MIO.SaveToFile(...);
Hope this helps. |