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
 How do change contrast image?

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
sungho Posted - Mar 22 2013 : 00:53:09
HI.
Below code is Change contrast value and save image file.

// Screen image is changed.
this->ImageEnView1->IO->IEBitmap->Contrast = 20;
this->ImageEnView1->IO->Update();

// save file image. (save file is not adapt contrast)
this->ImageEnView1->IO->SaveToFile("c:\\test-img\\test2.bmp");

I want saved file chnage contrast image.

Best Regards.
Thanks.
6   L A T E S T    R E P L I E S    (Newest First)
sungho Posted - Mar 23 2013 : 16:08:00
Hi.
Thanks to fast Reply.
Best Regards.
w2m Posted - Mar 23 2013 : 10:03:21
I do not think it is possible... When you save the file you generally use the ImageEnView.Proc in order to apply the contrast to the image for saving.

William Miller
sungho Posted - Mar 23 2013 : 06:30:55
HI.
I used view image and edit contrast/brightness.
After result image file save.

At this point, I would like to know how to apply the value set in the (IEBitmap-> Contrast) value to (proc-contrast).

Best Regards.
Thanks.
w2m Posted - Mar 23 2013 : 06:03:32
ImageEnView1->IO->IEBitmap->Contrast = 30 only visually shows the contrast.

ImageEnView2->Proc->Contrast(30) changes the contrast in the actual image.

Why are you using both?


William Miller
sungho Posted - Mar 22 2013 : 23:54:52
Thanks Reply.

I have a another question.
Same image load and


58.1 KBadapt below code.
Result image is not same.

this->ImageEnView2->Proc->Contrast(30);
this->ImageEnView2->Proc->Update();

this->ImageEnView1->IO->IEBitmap->Contrast = 30;
this->ImageEnView1->IO->Update();

I wish change brightness, contrast image file
and save result image file.
Attach image is adapt source code.

Best Regrards
Thannks.
w2m Posted - Mar 22 2013 : 06:09:54
IEBitmap.Contrast specifies a dynamic contrast to apply. It doesn't change the image but only how it is displayed.
Use ImageEnView.Proc.Contrast or ImageEnView.Proc.Contrast2 ImageEnView.Proc.Contrast3 or ImageEnView.Proc.AdjustBrightnessContrast instead.

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html