0
我創建位圖與view.When大小的視圖增加高度,我怎樣才能提高此位圖的高度,並得出這樣的:如何更改iOS中的位圖大小?
- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSaveGState(context);
if (myBitmapContext)
{
CGImageRef imageref = CGBitmapContextCreateImage(myBitmapContext);
CGContextDrawImage(context, rect, imageref);
CGImageRelease(imageref);
}
CGContextRestoreGState(context);
}
謝謝您的幫助!