ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem with DoPreviews

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.