Results 1 to 3 of 3

Thread: How can I?

  1. #1

    Thread Starter
    Addicted Member killer_cobra's Avatar
    Join Date
    Jun 2001
    Location
    Lost in space
    Posts
    131

    How can I?

    Hi all,

    I am wondering how I can make a virtual invisible grid on an image control.

    Example:

    I have an image control that is 6000 x 4000, and I want the grid to be say 640x480 but span the whole image control. So if I were to click on the very top left corner of the image in the control, I could get the grid co-ordonates and they would be something like : 632x478.

    I hope this is enough to go on, it's a hard question to explain, but that is my attemp. I imagine there would be some sort of API or math function that would let me do this, but I know not of them.

    Thanx a million in advance,

    Scott
    Error... What Error?!?! I've only typed a single character!
    ______________________________
    VB 6.0 EE, Win 2k Pro on AMD Duron 1Ghz/ 384 MB SDRAM

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    If you use picturebox control, use the Scale method (see vb help for info) and then the MouseUp procedure will pass the X and Y in your new coordinates...is this what you mean?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3
    Megatron
    Guest
    Get the coordinates in the MouseMove() event.

    Stretch the picture by setting the stretch property to true.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width