Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing A Picture which is larger than a Picture Box

Status
Not open for further replies.

Denk

Programmer
Jan 4, 2000
22
0
0
GB
I have a program which creates a Picture that is bigger than the Picture Box used to display it. I want to print the full picture, but can't figure out how to do it. Can anyone help? At the moment I can only print the section that is visible within the Picture Box.<br>

 
You can fix it with make the picturebox stretch.<br>
<br>
Load a picture in the first picturebox.<br>
<br>
Private Sub Form_Load()<br>
<br>
Picture1.Visible = False<br>
Picture1.AutoSize = True<br>
Picture2.AutoRedraw = True<br>
Picture2.PaintPicture Picture1.Picture, 0, 0, Picture2.ScaleWidth,<br>
Picture2.ScaleHeight, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight<br>
<br>
End Sub<br>
<br>
Success<br>
<br>
Eric<br>
<p>Eric De Decker<br><a href=mailto:vbg.be@vbgroup.nl>vbg.be@vbgroup.nl</a><br><a href= Visual Basic Center</a><br>
 
FYI, You can use a stdPicture object instead of a picture control.<br>
<br>
-nick bulka<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top