Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-11

TBitmap magnifying glass effect

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ramé

Hi, I'm can anyone point me to an example on how to do a simple magnifying glass over a TImage?.

What I want to do is to draw a zoomed area over a TImage at mouse position, then, when I move the mouse, the area is updated showing the new position, just like Virtual Magnifying Glass, but for TImages/TBitmap.

Thanks in advance.

Reply by email

Felipe Monteiro de Carvalho
to Leonardo M. Ramé
Leonardo M. Ram? wrote 6 lines
Hi, I'm can anyone point me to an example on how to do a simple magnifying glass over a TImage?. What I want to do is to draw a zoomed area over a TImage at mouse position, then, when I move the mouse, the area is updated showing the new position, just like Virtual Magnifying Glass, but for TImages/TBitmap.

I think that TImage is the wrong choice for the job. I would go for a TCustomControl descendent, just like VMG does.

Felipe Monteiro de Carvalho

Reply by email

Leonardo M. Ramé
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 14 lines
On Fri, Nov 26, 2010 at 2:39 AM, Leonardo M. Ram? wrote: > Hi, I'm can anyone point me to an example on how to do a simple > magnifying glass over a TImage?. > > What I want to do is to draw a zoomed area over a TImage at mouse position, then, when I move > the mouse, the area is updated showing the new position, just like > Virtual Magnifying Glass, but for TImages/TBitmap. I think that TImage is the wrong choice for the job. I would go for a TCustomControl descendent, just like VMG does. -- Felipe Monteiro de Carvalho

Thanks Felipe, could you show me an example or point me to an url that shows how to do it?

Reply by email