"인쇄, 장치, pdf 등 올바른 도면을 처리하는 것이 목표 인 것처럼 보입니다."
정확하게 맞습니다.
"정말로"일부 그림을 그리는 루틴을 작성하기 만하면됩니다 (단, 모든 유형의 사물이나 장치는 어디에도있을 수 있습니다). 선, 원, 타이포그래피, 색채 및 기타 넌센스와 같은 추상적 인 드로잉 이외의 다른 것에 대해 걱정할 필요가 없습니다.
-(void)happyDrawing
-(void)sadDrawing
-(void)fancyDrawing
그런 다음 - 놀랍게도 - 어디서나 사용할 수 있습니다.
-(void)makeSomeFiles
{
.. set up a context for making files
.. happyDrawing
}
-(void)makeATruGrayScaleBitmap
{
.. set up a context for making a gray bitmap
.. happyDrawing
}
-(void)drawRect
{
.. drawing on your Lisa screen
.. happyDrawing
}
-(void)drawRect
{
.. drawing on your iPad screen
.. happyDrawing
}
-(void)printAPage
{
.. set up a context for printing
.. happyDrawing
}
도움이되기를 바랍니다.
http://stackoverflow.com/questions/4772392/ios-current-graphics-context-what-is-that/4772545#4772545 – hotpaw2