2012年9月27日 星期四

Week 3: C++ Builder 之影像元件 TImage



1. 開啟與儲存 BMP 影像
2. Properties



ColorDialog1->Execute();
Image1->Canvas->Brush->Color =(TColor)RGB(130,67,33);
Image1->Canvas->FillRect(Rect(50,100,80,200));
Image1->Canvas->Pen->Color = ColorDialog1->Color;
Image1->Canvas->MoveTo(100,100);
Image1->Canvas->LineTo(100,200);
Image1->Canvas->Pixels[150][150] = clGreen;

3. Events

沒有留言:

張貼留言