Results 1 to 2 of 2

Thread: Getting dimensions of a picture

  1. #1
    Guest
    I there an API function I can call that will tell me the pixel dimensions of a jpeg?

    I was thinking along the lines of a 'GetMetrics' type thang, but I can't find anything around...

    Could anyone help please?

    Mafro

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    Its not even that complicated... just load the picture into a PictureBox, have the AutoSize property set to True, and the ScaleMode property set to Pixels. Then just get the ScaleWidth and ScaleHeight of the PictureBox.

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