Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » .NET Programming » Visual Basic .NET/2005/2008 » new vb.net 2003 user please help


new vb.net 2003 user please helpExpand / Collapse
Author
Message
Posted 11/9/2008 11:27:21 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 12/29/2008 10:26:29 AM
Posts: 6, Visits: 10
am making an image viewer where the user can import an image from computer resize, rotate, and / or add effects. so far i can open the image through open dialog change the size and view the new size but when i save the image using the save dialog it saves the old image not the new image.

here is my menu item save code

Dim newpbwidth As Integer
Dim newpbheight As Integer


If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then

newpbwidth = PBDisplay.Width
newpbheight = PBDisplay.Height
PBDisplay.SizeMode = PictureBoxSizeMode.StretchImage
PBDisplay.ClientSize = New Size(newpbwidth, newpbheight)



newimg = PBDisplay.Image

newimg.Save(SaveFileDialog1.FileName)

End If
can anyone help

Gerry
Post #26160
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Brian, Peter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 11:43pm