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
 Detecting blank page

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
hrc Posted - May 11 2015 : 06:25:54
In a multipage tiff I'm looking for a method to detect blank pages (they are to be removed). The most rigid test would be to check that every point in the page is RGB(0,0,0), but a more intelligent solution would be nice.

Anyone got an idea? Have I overlooked a well hidden IsBlank-function? :-)

(d2009, xe3, currently using an old ImageEN version, but will be upgrading to current very soon)
2   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 11 2015 : 08:38:44
There also are the IsEmpty and IsEmpty2 functions.
IsEmpty returns True if the image is empty.
At the moment just checks if the bitmap size is less than 2x2.
IsEmpty2 returns True if the image is empty, i.e. no image has been assigned or loaded.


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
spetric Posted - May 11 2015 : 08:25:12
Hi,

you can check dominant color. As written in help:


Percentage := ImageEnView.Proc.GetDominantColor(cl);
If Percentage = 100 then
   ShowMessage('the image is blank!');


Of course, you can use other percentage value (98 or similar).