Computer Learning Zone CLZ Access Excel Word Windows

There are no forbidden questions in science, no matters too sensitive or delicate to be probed, no sacred truths.

-Carl Sagan
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Visual Basic Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Convert RGB to HSV
Kevin Robertson 
          
6 years ago
Hi,
I am building a new version of my color picker program in VB2019 (I built a very basic version in VB6). I have successfully converted the RGB values to HSL, but cannot figure out how to convert to HSV.

I get the RGB from sliders which change the value in the appropriate textbox and changes the backcolor of a picturebox accordingly.

The values are to be displayed in seperate textboxes for Hue, Saturation and Value.

Thanks!
Richard Rost  @Reply  
          
6 years ago
Hi Kevin. I've never done this myself, but here's a page I found with a quick Google search that shows the math behind how to get it done: RGB to HSV Color Conversion
Alex Hedley  @Reply  
           
6 years ago
http://www.vbforums.com/showthread.php?786243-HSV-and-RGB-conversion
Alex Hedley  @Reply  
           
6 years ago
https://stackoverflow.com/questions/359612/how-to-change-rgb-color-to-hsv
Alex Hedley  @Reply  
           
6 years ago
I remember the original VB6 app, looking forward to seeing a few screenshots of the new one.
I’ve not tested the above links but could be useful to look into a few namespaces, I’d be surprised if there wasn’t already a nuget that would wrap it in a simple API, seems like something people would want to do often in drawing programs.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visual Basic Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/28/2026 9:16:27 PM. PLT: 1s