2011年9月22日 星期四

Week 3: Image 元件

 

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
4. TBitmap::ScanLine

Byte *bPtrImageRow;
bPtrImageRow1 = (Byte *)Image1->Picture->Bitmap->ScanLine[j];
Image1->Refresh();

Sample Program -2011F-Week 3

5. MDI Application 練習
 

沒有留言:

張貼留言