Hi!
When run below code in iOS blank Playground
Result in console:
But when change width and height to 561, result in console:
Is there for playground some memory limits or etc?
Xcode - Version 12.3 (12C33)
When run below code in iOS blank Playground
Code Block import UIKit let contextBig = CGContext( data: nil, width: 560, height: 560, bitsPerComponent: 8, bytesPerRow: 2240, space: CGColorSpace(name: CGColorSpace.sRGB)!, bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue) print (contextBig as Any)
Result in console:
Code Block Optional(<CGContext 0x600003cc0540> (kCGContextTypeBitmap) <<CGColorSpace 0x600002ddc300> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1)> width = 560, height = 560, bpc = 8, bpp = 32, row bytes = 2240 kCGImageAlphaPremultipliedFirst | 0 (default byte order) | kCGImagePixelFormatPacked (default) )
But when change width and height to 561, result in console:
Code Block nil
Is there for playground some memory limits or etc?
Xcode - Version 12.3 (12C33)