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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How do change contrast image?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sungho

Korea
14 Posts

Posted - Mar 22 2013 :  00:53:09  Show Profile  Reply
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.

w2m

USA
1990 Posts

Posted - Mar 22 2013 :  06:09:54  Show Profile  Reply
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
Go to Top of Page

sungho

Korea
14 Posts

Posted - Mar 22 2013 :  23:54:52  Show Profile  Reply
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.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Mar 23 2013 :  06:03:32  Show Profile  Reply
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
Go to Top of Page

sungho

Korea
14 Posts

Posted - Mar 23 2013 :  06:30:55  Show Profile  Reply
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.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Mar 23 2013 :  10:03:21  Show Profile  Reply
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
Go to Top of Page

sungho

Korea
14 Posts

Posted - Mar 23 2013 :  16:08:00  Show Profile  Reply
Hi.
Thanks to fast Reply.
Best Regards.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: