简体   繁体   English

如何使用Swift显示图像的选择像素?

[英]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.

相关问题 如何快速将图像显示为表情符号? - How do i display an image as a emoji in swift? 我想使用两个按钮选择图像,并想在两个不同的图像视图中快速显示这些图像。我该怎么做? - I want to select image using two buttons and want to display those images on two different image view in swift..how could I do this.? 如何在UIImageView(Swift)中显示来自Parse的图像? - How do I display an image from Parse in a UIImageView (Swift)? 如何使用 Swift 使用 UIPickerView 选择 ip? - How do I select ip using UIPickerView using Swift? 如何使用/不使用UIBezierPath在Swift中循环图像? - How do I circulate an image in Swift using/without using UIBezierPath? SKSpriteNode-如何写入组成子画面图像的像素? - SKSpriteNode - How do I write to the pixels that make up the image of a sprite? 如何将图像保存在核心数据中然后进行检索? 使用迅捷 - How do i save an image in core data then retrieve it? Using swift 使用Swift 4,如何获取本地存储的图像? - Using Swift 4, how do I fetch a locally stored image? 如何使用Swift在iOS中使用透明设置背景图片? - How do I set a background image in iOS with transparency using Swift? 如何使用 swift 显示 .svg 图像 - How to display .svg image using swift
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM