[add] add some methods from CGContext.h and UIGraphics.h