Results 1 to 3 of 3

Thread: PictureBox Scale

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2009
    Posts
    61

    PictureBox Scale

    Hi!
    What's the equivalent method in .NET of the Picture1.Scale (0,0)-(10,10) method in 6.0?
    Thanks in advance.

  2. #2

    Thread Starter
    Member
    Join Date
    Jul 2009
    Posts
    61

    Re: PictureBox Scale

    Any help guys?

  3. #3
    Fanatic Member ThomasJohnsen's Avatar
    Join Date
    Jul 2010
    Location
    Denmark
    Posts
    528

    Re: PictureBox Scale

    2 mins of googling told me that there is no scaling of a Bitmap.
    Apparently the way to go is to create a Bitmap of the size you need to scale to, create a graphics object on this scaled bitmap and then use DrawImage to draw a scaled version of the first bitmap into the second.

    Let me google that for you.

    Or you can use a PictureBox with the sizemode set to StretchImage thus allowing the current size of the PictureBox to determine the scaling.
    In truth, a mature man who uses hair-oil, unless medicinally , that man has probably got a quoggy spot in him somewhere. As a general rule, he can't amount to much in his totality. (Melville: Moby Dick)

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