2011年1月16日日曜日

pictureBox の画像の大きさの取得

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

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

0 件のコメント:

コメントを投稿