Lines Matching refs:width
108 def IISaveImage(image, url, width, height):
111 # If there is no image, no destination, or the width/height is 0, then fail early.
112 assert (image is not None) and (url is not None) and (width != 0.0) and (height != 0.0)
121 imageData = objc.allocateBuffer(int(4 * width * height))
126 width, # width
129 4 * width, # bytes per pixel times number of pixels wide
136 IIDrawImageTransformed(image, bitmapContext, CGRectMake(0.0, 0.0, width, height))
205 imageRect.size.width = CGImageGetWidth(image.fImageRef);
214 # For orientations 1-4, the images are unrotated, so the width and height of the base image
215 # can be used as the width and height of the coordinate translation calculation.
218 math.floor((bounds.size.width - imageRect.size.width) / 2.0),
223 # the image width in place of the height and vice versa.
226 floorf((bounds.size.width - imageRect.size.height) / 2.0),
227 floorf((bounds.size.height - imageRect.size.width) / 2.0))
238 CGContextTranslateCTM(context, bounds.size.width/2.0, bounds.size.height/2.0)
244 CGContextTranslateCTM(context, -bounds.size.width/2.0, -bounds.size.height/2.0)
249 CGContextTranslateCTM(context, bounds.size.width/2.0, bounds.size.height/2.0)
255 CGContextTranslateCTM(context, -bounds.size.width/2.0, -bounds.size.height/2.0)