Any idea how I resize a Bitmap in the Bitmap-Class at runtime?
Chris
Bitmap newBitmap = new Bitmap(newSize.X, newSizeY);
Graphics g = Graphics.FromImage(newBitmap);
g.DrawImage(oldBitmap, new Rectangle(0, 0, newBitmap.Width,
newBitmap.Height), new Rectangle(0, 0, oldBitmap.Width, oldBitmap.Height),
GraphicsUnit.Pixel);
"Christian Stelte" <cstelte(at)sytec-net.de> wrote in message
news:ertlQeps...@TK2MSFTNGP09.phx.gbl...
'PictureBox1
'
Me.PictureBox1.Image = CType(resources.GetObject
("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(80, 88)
Dim bmpHigh As Integer =
PictureBox1.ClientSize.Height.ToString(30)
Dim bmpWid As Integer =
PictureBox1.ClientSize.Width.ToString(90)
Me.PictureBox1.Size = New System.Drawing.Size(bmpWid,
bmpHigh)
That's it!
Thank you!
Chris