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
 Color in the ImageEnMView Document

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
michaeldca Posted - Dec 16 2016 : 10:59:00
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.
5   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Dec 19 2016 : 12:58:26
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
michaeldca Posted - Dec 19 2016 : 11:59:37
I'm referring to the color of the bitmap.
w2m Posted - Dec 19 2016 : 11:19:08
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
michaeldca Posted - Dec 19 2016 : 11:16:22
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.
w2m Posted - Dec 16 2016 : 11:49:47
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