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
 Create GridLayer on top of image

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
BionicWave Posted - Aug 24 2011 : 13:38:10
I would like to create a layer on top of a background-image that has shows a grid with the width of the original pixelsize.
So when i zoom into the background-image, the gridwidth grows, as the pixelwidth of the background-image does.
Its the effect you can see in photoshop when zooming deep into an image. If you reach a certain zoomlevel, the grid shows up, so you can easily distinguish all the single pixels.

Is that possible?
Is there an easy example of how to do that?

4   L A T E S T    R E P L I E S    (Newest First)
BionicWave Posted - Aug 25 2011 : 00:54:00
Many thanks to you, guys.
This is exactly what i was looking for.

@fabrizio:
thanks for the info on where to find the fields for the grid.
I will take a look inside the imageenview unit for other options.
fab Posted - Aug 24 2011 : 23:46:22
Yes, it is possible to set the pen for the grid using iegGRIDPEN public field (it is a TPen object), for example:

iegGRIDPEN.Color:=clRed;
iegGRIDPEN.Mode:=pmCopy;
ImageEnView1.Update();


iegGRIDPEN is defined in "imageenview" unit.
BionicWave Posted - Aug 24 2011 : 14:31:18
Wow, thats nice.
Is it possible to set a different color for the grid?
w2m Posted - Aug 24 2011 : 14:20:50
property DisplayGrid:boolean;

Description

When DisplayGrid is True and the Zoom is equal to or greater than 400, a grid is drawn. Each grid box is equivalent to a bitmap pixel.

Look also iegMINZOOMDISPLAYGRID.

This does exactly what you are looking for except it is not a layer. If DisplayGrid = True with the default iegMINZOOMDISPLAYGRID = 400 then the grid appears when the image is zoomed to 400%.

William Miller