I
Ian Lazarus
Hello,
I expected the code below to display the picture in half its normal size.
Instead, it displays it in the original size. What is the correct way to do
this?
Thanks
Form()
{
pictureBox->set_Image(new Bitmap(new String("c:\\picture.bmp")));
}
// pictureBox OnPaint event
private: System::Void OnPaintPicture(System::Object * sender,
System::Windows::Forms:aintEventArgs * e)
{
Graphics *pgraphics = e->get_Graphics();
pgraphics->ScaleTransform(0.5, 0.5);
}
I expected the code below to display the picture in half its normal size.
Instead, it displays it in the original size. What is the correct way to do
this?
Thanks
Form()
{
pictureBox->set_Image(new Bitmap(new String("c:\\picture.bmp")));
}
// pictureBox OnPaint event
private: System::Void OnPaintPicture(System::Object * sender,
System::Windows::Forms:aintEventArgs * e)
{
Graphics *pgraphics = e->get_Graphics();
pgraphics->ScaleTransform(0.5, 0.5);
}