PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD22] Image Control zoom if the mouse goes ober an area
[WD22] Image Control zoom if the mouse goes ober an area
Débuté par Michael Drechsel, 11 avr. 2018 11:23 - 1 réponse
Posté le 11 avril 2018 - 11:23
Hi,

I need a function in windev that zooms a area of a small picture when the user moves the mouse over it.
Like in amazons product pictures.

Any ideas ?
Posté le 11 avril 2018 - 12:24
Hi Michael,

this is what I would do:
- a second image control where the zoomed area will be displayed
- code on the first image when the mouse is hovering
- dcopyimage to copy part of the main image into the second one, ergo with a different zoom value
- IF you need a better quality, you may want to have an hidden image with the bigger image in it at 100% and do the copy from this one instead of from the smaller one.

Best regards