python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
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
Force UIView to draw with specific scale (1 point = 1 pixel)
I'm doing a barcode printing feature, it generates a barcode view and then send the pixels data to the thermal printer. The process is below:
Snapshot UIView with size 250x90 (points) to UIImage:
le...

kientux
Votes: 0
Answers: 0