DIV ARENA FORUMS

Magnifying Glass

dom cook - 7-3-2019 at 03:14 PM

All that is gold does not glitter.

This is a demo of how you can do a magnifying glass/telescope effect.
I've put some images down the left-hand side to illustrate the process, which is basically as follows.

1. Copy the section of the image you want to magnify.
2. Erase a hole in it.
3. Copy a magnified version of the section.
4. Put the image with a hole in it on top of the zoomed copy.
5. Put the image over the corresponding part of the big map
6. Draw a rim over the top.


Attachment: LOTR.PRG (3kB)
This file has been downloaded 759 times

Attachment: Lupe.FPG (1.5MB)
This file has been downloaded 799 times


[Edited on 7-3-2019 by dom cook]

ME3.png - 1.3MB

dom cook - 7-3-2019 at 03:45 PM

I just realised that it would be more efficient to erase the outside of the circle of a zoomed image rather than the inside of the unzoomed one. The area that needs to be erased is reduced to about a quarter this way. The steps in the process would be fewer too.


1. make a zoomed copy
2. erase the area outside the circle.
3. put it over the map
4. add the rim.



dom cook - 8-3-2019 at 03:30 PM

This version lights up the area under focus a bit, but be careful not to set fire to the map.

fire and shadow.png - 291kB

Attachment: ABOVEALL.PRG (7kB)
This file has been downloaded 736 times

Attachment: Lupe.FPG (1.5MB)
This file has been downloaded 786 times


MikeDX - 8-3-2019 at 04:01 PM

This is very cool and a lovely tutorial

At the moment I cant even get DIV to run on my mac :(

dom cook - 8-3-2019 at 05:27 PM

Thanks Mike,
And treat yourself to a new computer, you deserve it.


Vortigano - 10-3-2019 at 09:35 PM

Wow, i try it.... When I have the time I would like to implement some of your programs using div dlls if you allow me.

dom cook - 11-3-2019 at 05:51 AM

Of course, that would be great. I'd like to do that sort of thing myself but I'm clueless when it comes to the low level stuff. I've got quite a few ideas for dlls that would enhance DIV. Maybe we could work together on this.

By the way did you manage to burn the map?

Vortigano - 11-3-2019 at 01:18 PM

I tryed it. It looks very good. The map burned from the right side.

MikeDX - 22-3-2019 at 03:29 PM

A few problems..

http://js.mikedx.co.uk/LOTR.html

But I'm working on it