2011年1月16日日曜日

pictureBox の画像の大きさの取得

private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
   Bitmap^ bmp2 = gcnew Bitmap(pictureBox1->Image);
   image_w->Text = Convert::ToString(bmp2->Width);
   image_h->Text = Convert::ToString(bmp2->Height);
   }

テキストボックスのプロパティーのデザインの(Name)が image_w に表示している。

0 件のコメント:

コメントを投稿