python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Swift: The simpliest way to load a local png/jpg image file to a UInt8/UInt16 array? And write such array back to an image file?
I am translating to Swift some Python image processing tasks, which in Python only requires about 30 lines of code.
As I just want to obtain a simple command-line tool with no UI graphics, I'm trying ...
Develoop
Votes: 0
Answers: 1
Histogram of UIImage - calculating data of Lookup Table
Code
This is my code for creating Lookup Table from UIImage - in order to use it as data for image's histogram. But I'm not quite happy with the performance time of it.
extension UIImage {
func ge...
Kacper Ducin
Votes: 0
Answers: 0
Covering a CALayer with a CGImage
I have a CGImage that I want to show in a CALayer. Setting the content and the gravity to the bottom-left works like expected.
layer.contents = cgimage
layer.contentsGravity = .bottomLeft
Now I want...
tcurdt
Votes: 0
Answers: 2
How to crop the shape of an image out of a caShape layer,
I have a cashape layer which looks like this
I have this P Image
I want the center of the triangle to be see-through in the same shape of P image (or any image) kind of like this
I have tried (amon...
Ungrace
Votes: 0
Answers: 1