Results 1 to 13 of 13

Thread: [RESOLVED] Savepicture when dpi aware and dpi > 96

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    159

    Resolved [RESOLVED] Savepicture when dpi aware and dpi > 96

    Hi folks,
    I have been updating a program to be dpi aware and have solved all the problems except one.

    This is a screenshot of a picturebox...

    Name:  Before.jpg
Views: 824
Size:  24.4 KB

    The result of Savepicture Picturebox.picture , File$ is as above when performed in the VB6 environment but like this when run compiled.

    Name:  after.jpg
Views: 854
Size:  25.8 KB

    The difference in scale is a result of snapping the second shot from the windows picture viewer. Both are actually scalled the same. The problem is that the saved graphic is cropped by the scalling factor.

    If anyone can suggest a way round this, I would be eternally grateful!

    I guess what I'm loking for is code to get the image from Picturebox.hdc to File.bmp without using the VB Savepicture!
    Last edited by JohnTurnbull; Jun 4th, 2015 at 06:05 AM.

Tags for this Thread

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