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
 Test if a pixel is visible on screen?

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
tedfine Posted - Jan 06 2018 : 15:15:29
We have a large bit map. (say, 2000x1000).

Is there any way to test whether a given pixel is actually painted on the screen (or eliminated by re-sampling) when zooming (or ImageEnView1 is resized?)

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 07 2018 : 17:38:48
Hi Tom

OK, there is no way to determine which pixels are shown after a resample (which would be even more complex if a resample filter was used).

From what you are describing it sounds like your marquee should be on a text layer, or you should resample the image before adding your marquee.



Nigel
Xequte Software
www.imageen.com
tedfine Posted - Jan 07 2018 : 11:29:19
Hi, Nigel,

Nope, that's not quite what I'm looking for.

Suppose I have an image that is 2000x1000 that I'm displaying it on the screen in a window that is 500x250. Some of the rows from the bitmap just aren't going to be seen on the screen -- because of resampling that gets done.

It's those rows I want to identify. Why? Because I'm drawing a marque in the bitmap itself before displaying it. Perhaps it's 50x60 and located at 0,0. I want the marque to always be visible, if after resampling (assuming the region is in the visual region.)

Perhaps there's a way to do this with layers?

Tom

xequte Posted - Jan 07 2018 : 04:39:19
Hi

This might not be what you are looking for, but you can see if a pixel is onscreen by comparing it to VisibleBitmapRect:

https://www.imageen.com/help/TImageEnView.VisibleBitmapRect.html

Nigel
Xequte Software
www.imageen.com