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
 Color in the ImageEnMView Document
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

michaeldca

Brazil
8 Posts

Posted - Dec 16 2016 :  10:59:00  Show Profile  Reply
How do I see the image color image with the ImageEnMView component?


I need to see the color of each page of the TIFF file.

w2m

USA
1990 Posts

Posted - Dec 16 2016 :  11:49:47  Show Profile  Reply
Please improve your question. I do not understand what you are trying to ask.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

michaeldca

Brazil
8 Posts

Posted - Dec 19 2016 :  11:16:22  Show Profile  Reply
How do I view the color of a multipage TIFF file? Remember that I need to see the color of each page. Using the TImageEnMView component.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Dec 19 2016 :  11:19:08  Show Profile  Reply
Your question is still not valid. I can not understand what you mean by the color of each page. Are you referring to the color of the bitmap or the colors of the thumbnail around the bitmap?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

michaeldca

Brazil
8 Posts

Posted - Dec 19 2016 :  11:59:37  Show Profile  Reply
I'm referring to the color of the bitmap.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Dec 19 2016 :  12:58:26  Show Profile  Reply
Bitmaps can have millions of colors. Is each pixel in the bitmap the same color? If so then try:
var
  iRGB: TRGB;
  iRGBString: string;
  iColor: TColor;

 { Display RGB }
 iRGB := ImageEnMView1.IEBitmap.Pixels_ie24RGB[0, 0];
 iRGBString := 'RGB: ' + IntToStr(iRGB.r) + '.' + IntToStr(iRGB.g) + '.' +
   IntToStr(iRGB.b);
 LabelRGB1.Caption := iRGBString;
 LabelRGB1.Update;
 { Display Color }
 LabelColor1.Caption := 'Color: ' + ColorToString(TRGB2TColor(iRGB));
 LabelColor1.Update;

This gets the color of the bitmap for the selected image from the top left pixel of the bitmap.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: