当前位置:网站首页>How do I get red green blue (RGB) and alpha back from a UIColor object?
How do I get red green blue (RGB) and alpha back from a UIColor object?
2022-06-25 07:12:00 【Technology feast】
problem :
I am getting a UIColor returned from this method: I return a from this method UIColor :
- (UIColor *)getUserSelectedColor { return [UIColor colorWithRed:redSlider.value green:greenSlider.value blue:blueSlider.value alpha:1.0];}and getting color like this: And get this color :
UIColor *selectedColor = [(ColorPickerView *)alertView getUserSelectedColor];Now I want to get red, green, blue from selectedColor, in order to use those values. Now I want to start from selectedColor Get red in 、 green 、 Blue , To use these values .I want values between 0 and 1. I want 0 To 1 Between the value of the .
Solution :
Reference resources : https://stackoom.com/en/question/6HMa边栏推荐
- [从零开始学习FPGA编程-43]:视野篇 - 后摩尔时代”芯片设计的技术演进-2-演进方向
- Finally, when you open source the applet ~
- Cloning and importing DOM nodes
- fastadmin 联级清空数据
- Using awk to process input from multiple files
- MSG_ OOB MSG_ PEEK
- 48 张图 | 手摸手教你微服务的性能监控、压测和调优
- What is the real future of hardware engineers?
- Report on development status and investment strategy recommendations of global and Chinese graphite polystyrene board industry 2022-2028
- Understand ZBrush carving software and game modeling analysis
猜你喜欢

有了 MySQL 为什么要用 NoSQL?

网络是怎样连接的?

Cloning and importing DOM nodes

Non-contact infrared temperature measurement system for human body based on single chip microcomputer

I have used it for six years!

爱情️终结者

Modify the default log level

Expression of fatherly love

Event registration Apache pulsar x kubesphere online meetup hot registration

Want to self-study SCM, do you have any books and boards worth recommending?
随机推荐
Finally, when you open source the applet ~
Kubernetes cluster dashboard & kuboard installation demo
Derivation of COS (a+b) =cosa*cosb-sina*sinb
集群常用群起脚本
Pratique de gestion hiérarchique basée sur kubesphere
Kubernetes 集群中流量暴露的几种方案
Esp8266 & sg90 steering gear & Lighting Technology & Arduino
有能力的人从不抱怨大环境!
StreamNative Platform 1.5 版本发布,集成 Istio、支持 OpenShift 部署
Blue Bridge Cup SCM module code (timer) (code + comments)
燕京啤酒何以至此?
Americo technology launches professional desktop video editing solution
lotus v1.16.0-rc2 Calibration-net
Ctfhub web - divulgation d'informations - traversée du Répertoire
Who can teach me how to learn SCM, what to learn first and how to get started?
Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment
We are different
Direct select sort and quick sort
MSG_ OOB MSG_ PEEK
Practice of hierarchical management based on kubesphere