BasicDrawable.m 681 B

12345678910111213141516171819202122232425
  1. //
  2. // BasicDrawable.m
  3. // pdftest
  4. //
  5. // Created by Ray on 10/18/16.
  6. // Copyright © 2016 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "BasicDrawable.h"
  9. @implementation BasicDrawable
  10. //-(void) flipContext:(CGContextRef) context ContextHeight:(double)height
  11. //{
  12. // // 翻转坐标系统以适应UIkit,左上为原点
  13. // CGContextTranslateCTM(context, 0, height);
  14. // CGContextScaleCTM(context, 1, -1);
  15. //}
  16. //
  17. //-(void) restoreFlip:(CGContextRef) context ContextHeight:(double)height
  18. //{
  19. // // 恢复坐标系统Core Graphics,左下为原点
  20. // CGContextScaleCTM(context, 1, -1);
  21. // CGContextTranslateCTM(context, 0, -height);
  22. //}
  23. @end