imageWithCGImage$1 static method

UIImage imageWithCGImage$1(
  1. Pointer<CGImage> cgImage, {
  2. required double scale,
  3. required UIImageOrientation orientation,
})

imageWithCGImage:scale:orientation:

Implementation

static UIImage imageWithCGImage$1(
  ffi.Pointer<CGImage> cgImage, {
  required double scale,
  required UIImageOrientation orientation,
}) {
  objc.checkOsVersionInternal('UIImage.imageWithCGImage:scale:orientation:', iOS: (false, (4, 0, 0)));
  final $ret = _objc_msgSend_16go90j(
    _class_UIImage,
    _sel_imageWithCGImage_scale_orientation_,
    cgImage,
    scale,
    orientation.value,
  );
  return UIImage.fromPointer($ret, retain: true, release: true);
}