Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Image with zoom capabilities

  1. #1

    Thread Starter
    Hyperactive Member ZaNi's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    360

    Resolved [RESOLVED] [2005] Image with zoom capabilities

    I've drawn a bitmap using system.drawing functions:
    VB Code:
    1. Dim bmp As Bitmap = New Bitmap(PictureBox1.Width, PictureBox1.Height, Drawing.Imaging.PixelFormat.Format24bppRgb)
    2. Dim g As Graphics = Graphics.FromImage(bmp)
    , used g.drawline, g.drawrect etc to build the image, and then finished with this:
    VB Code:
    1. PictureBox1.Image = bmp
    Now I need to be able to zoom in on a section of the image for more detail. I remember seeing something regarding scaling of images, but I haven't been able to find anything useful googling the net. The zoom functionality does not need to be excellent (anything comparable to paint would be fine).

    Thanks in advance

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: [2005] Image with zoom capabilities

    Take a look at []url=http://www.vbforums.com/showthread.php?t=386181&highlight=zoom+imagethis thread[/url]. I think this will produce what you want. Make sure you go to the link this thread points you to.
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

  3. #3

    Thread Starter
    Hyperactive Member ZaNi's Avatar
    Join Date
    Jun 2006
    Location
    Australia
    Posts
    360

    Re: [2005] Image with zoom capabilities

    Thank you very much... I should've looked more throughly on this site before I posted...

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