[英]How do I Display Select Pixels of an Image Using Swift?
I'm trying to define pixels of an image based on their color code, and display them on command. 我正在尝试根据其颜色代码定义图像的像素,并在命令中显示它们。 I've been researching this and can't seem to find information on the subject, I've mostly been pointed towards "Animations" and "Core Image Filters" which isn't quite what I'm looking for.
我一直在对此进行研究,但似乎找不到有关该主题的信息,我主要针对的是“动画”和“核心图像滤镜”,它们并不是我想要的。 Any information on the subject is much appreciated.
非常感谢您提供有关该主题的任何信息。
https://github.com/jjxtra/DRColorPicker https://github.com/jjxtra/DRColorPicker
try this sample code of a color picker. 试试这个颜色选择器的示例代码。 one of the views is a plane of continuous colors and is probably what you want.
其中一种视图是连续颜色的平面,可能正是您想要的。 apple has good source code and the swift book is great for avoiding bad questions.
苹果具有良好的源代码,而速记本可以避免一些不好的问题。 you have to watch it as a beginer.too many simple questions on this site and they will block you from asking more.
您必须将其视为新手。在此网站上有太多简单的问题,它们将阻止您提出更多问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.