The Skung Rockification of Ziggy Skungdust and the SIMD's
This commit is contained in:
@ -43,10 +43,9 @@ struct NSImageLoader: LoaderProtocol
|
||||
context.draw(image, in: CGRect(x: 0, y: 0, width: image.width, height: image.height))
|
||||
|
||||
guard let data = context.data else { throw ImageLoaderError.loadFailed("what") }
|
||||
return Image(
|
||||
pixels: Data(bytes: data, count: 4 * image.width * image.height),
|
||||
width: image.width,
|
||||
height: image.height)
|
||||
return Image(Data(bytes: data, count: 4 * image.width * image.height),
|
||||
format: .argb8888,
|
||||
width: image.width, height: image.height)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user