E N D
1. ?? ?????????PhotoImpact ?PhotoShop ?Windows ??????, ??????????????????????, ????????, ????????????????????, ?????????,????????????, ???????????????, ????????????????????????????????????????????????
????
????
????
??
2. 1 4 - 1 ???? BCB ??????????, ????????Canvas ??, ?Form?Image ?BitMap ?PaintBox ???????Canvas ???
3. ????????Image1 ???(10, 10)?, ????"Welcome", ????
Image1->Canvas->TextOut(10, 10, "Welcome") ;
4. ????????Image1 ???(10, 10)?(100, 100)????????(LineTo), ????
x1 = 10 ;
y1 = 10 ;
x2 = 100 ;
y2 = 100 ;
Image1->Canvas->MoveTo(x1, y1) ;
Image1->Canvas->LineTo(x2, y2) ;
5. ????????(20, 20)?(200, 100)???????(Rectangle), ????
Image1->Canvas->Rectangle(20, 20, 200, 100) ;
Image1->Canvas->TextOut(10, 10, "(20, 20)") ;
Image1->Canvas->TextOut(200, 100, "(200, 100)") ;
6. ????????(20, 20)?(200, 100)?????????(Round Rect),????
/ / ????????????????
Image1->Canvas->RoundRect(20, 20, 200, 100, 30, 30) ;
/ / ????????
Image1->Canvas->Rectangle(20, 20, 200, 100) ;
Image1->Canvas->TextOut(10, 10, "(20, 20)") ;
Image1->Canvas->TextOut(200, 100, "(200, 100)") ;
7. ????????(20, 20)?(200, 100)???????(Ellipse), ????
/ / ????????
Image1->Canvas->Rectangle(20, 20, 200, 100) ;
Image1->Canvas->TextOut(10, 10, "(20, 20)") ;
Image1->Canvas->Ellipse(20, 20, 200, 100) ;
Image1->Canvas->TextOut(200, 100, "(200, 100)") ;
8. ????????(20, 20)?(200, 100)???????(Arc), ????
/ / ????????
Image1->Canvas->Rectangle(20, 20, 200, 100) ;
Image1->Canvas->TextOut(10, 10, "(20, 20)") ;
Image1->Canvas->TextOut(200, 60, "(200, 60)") ;
Image1->Canvas->Arc(20, 20, 200, 100, 200, 60, 110, 100) ;
Image1->Canvas->TextOut(200, 100, "(200, 100)") ;
Image1->Canvas->TextOut(110, 100, "(110, 100)") ;
9. ????????(20, 20)?(200, 100)??????????(Chord), ????
/ / ????????
Image1->Canvas->Rectangle(20, 20, 200, 100) ;
Image1->Canvas->TextOut(10, 10, "(20, 20)") ;
Image1->Canvas->TextOut(200, 60, "(200, 60)") ;
Image1->Canvas->Chord(20, 20, 200, 100, 200, 60, 110, 100) ;
Image1->Canvas->TextOut(200, 100, "(200, 100)") ;
Image1->Canvas->TextOut(110, 100, "(110, 100)") ;
10. ????????(20, 20)?(200, 100)???????(Pie), ????
/ / ????????
Image1->Canvas->Rectangle(20, 20, 200, 100) ;
Image1->Canvas->TextOut(10, 10, "(20, 20)") ;
Image1->Canvas->TextOut(200, 60, "(200, 60)") ;
Image1->Canvas->Pie(20, 20, 200, 100, 200, 60, 110, 100) ;
Image1->Canvas->TextOut(200, 100, "(200, 100)") ;
Image1->Canvas->TextOut(110, 100, "(110, 100)") ;
11. ????????Image1 ?????????, ????
TPoint p[4] ;
p[0] = Point(10, 10) ;
p[1] = Point(10, 100) ;
p[2] = Point(100, 100) ;
p[3] = Point(100, 10) ;
Image1->Canvas->Polyline(p, 3) ;
12. ????????Image1 ?????????, ????
TPoint p[3] ;
p[0] = Point(100, 10) ;
p[1] = Point(50, 100) ;
p[2] = Point(200, 100) ;
Image1->Canvas->Polygon(p, 2) ;
13. ????????Image1 ???????????????, ????
TPoint p[4] ;
Image1->Canvas->TextOut(10, 10, "(10, 10)") ;
p[0] = Point(10, 10) ;
p[1] = Point(100, 10) ;
p[2] = Point(200, 100) ;
p[3] = Point(200, 100) ;
Image1->Canvas->TextOut(200, 100, "(200, 100)") ;
Image1->Canvas->PolyBezier(p, 3) ;
14. ????????????, ????
Image1->Canvas->Brush->Color = clBlack ;
Image1->Canvas->FloodFill(50, 50, clBlack, fsBorder) ;
15. ??14-1a ???????????????, ???????????????????:
1. ???" ??" ???
2. ?????????
3. ???????, ?????????????
4. ???????, ??????????
5. ???????????, ????????3 ??????
16. ??14-1b ????????
17. ??14-1c ????, ????????, ????????????????
18. ??14-1d ????????
19. ??14-1e ???????????
20. ??14-1f ?????(Polyline) ??????(Polygon) ????
21. ??14-1g ????????????
22. ??14-1h ??????????
23. 1 4 - 2 ???? ????????????, ??????????????????????, ?????????????????????????????????????????????????????
???Canvas ???????, ???????????????
25. ??14-2a ?????????????
26. 1 4 - 3 ????
27. ??14-3a ???????, ??????
????
1. ????????:
x = r cos ?
y = r sin ?
2. BCB ?????????, ??(0, 0) ????????, x ??????, y ??????, ???????????????, ???????(x0, y0), ???(x0, y0) ????????????
28. ??14-3b ????, ???????????r =100*COS (5 ?)?
29. ??14-3c ????????
30. ??14-3d ????????
31. 1 4 - 4 ?? 1. ?????, ?????????????