Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1530

ColorPicker similar to PhotoShop's (Learn vbRichClient5.Cairo drawing step by step)

$
0
0
There are several good ColorPickers in the CodeBank, for example:

(1) ColinE66's ColourPicker[vbRichClient]: http://www.vbforums.com/showthread.p...r-vbRichClient
(2) Eduardo's Wheel Color Picker: http://www.vbforums.com/showthread.p...l-Color-Picker

But I need a ColorPicker similar to PhotoShop's, because PhotoShop is the most widely used drawing tool in the world.

wqweto wrote a very good ColorPicker similar to PhotoShop's 18 years ago, but its UI is so old that I can't use it in my projects. So I decided to rewrite wqweto's ColorPicker with vbRichClient5.Cairo.

Although I've used RC5.Cairo in my Spread and CodeEditor, Cairo's syntax is completely different from VB6 GDI, so that as long as I don't use Cairo for 6 months, I'll completely forget Cairo's usage, and I need to start learning it from scratch. Therefore, I think it necessary to record the process of rewriting wqweto's ColorPicker with RC5.Cairo for others interested in learning Cairo drawing.

It will take some time to rewrite wqweto's ColorPicker, because I need to spend a lot of time to search for information and test the usage of Cairo. Fortunately, Olaf has left a large number of Cairo examples on this forum. Searching these examples can solve almost all Cairo drawing problems.

wqweto's real-time PhotoShop like color-picker
http://www.planet-source-code.com/vb...xtCodeId=36529

Note:
My ultimate goal is to use RC5.Cairo to develop a professional and modern ColorPicker similar to PhotoShop's, which will be named vbColorPicker. If I have more time in the future, I'll rewrite Eduardo's Wheel Color Picker with Cairo and add it to vbColorPicker to form vbColorPickerPro. As for cwColorPicker, I need Olaf's help and guidance to complete it. Maybe ColinE66 is a better candidate to develop it.

List of revisions:
Code:

2020-07-06
- vbColorPicker Final

2020-07-02
- Add PopupPosition parameter to ShowEx function.
- Improved FrmColorPicker

Note:
Now the vbColorPicker is basically completed.

2020-07-01
- Completely rewrote FrmColorPicker

2020-06-30
- Add CreateBarSat (DreamManor -- RC5.Cairo)
- Add CreateRectSat (DreamManor -- RC5.Cairo)
- Add CreateRectSatAccelerate (DreamManor -- RC5.Cairo)
- Add CreateBarBri (DreamManor -- RC5.Cairo)
- Add CreateRectBri (DreamManor -- RC5.Cairo)
- Add CreateRectBriAccelerate (DreamManor -- RC5.Cairo)
- Add Only-Web-Colors Test-Option
- Improved SpinBox
- Add vbColorPicker: FrmColorPicker(Beta)

2020-06-28
- Add cUpDown.cls (DreamManor -- RC5.Cairo)
- Add SpinBox User Control (DreamManor)
- Add SpinBox Test Page (DreamManor)

2020-06-27 a.m.
- Create Rect Hue (DreamManor -- RC5.Cairo)
- Create Rect Hue (Acclerate) (DreamManor -- RC5.Cairo)
- Create Rect RGB (DreamManor -- RC5.Cairo)
- Add Speed Compare Module

2020-06-26
- Create Bar Hue (DreamManor -- RC5.Cairo)
- Create Bar RGB (DreamManor -- RC5.Cairo)
- Create Rect RGB (Acclerate) (DreamManor -- RC5.Cairo)

2020-06-25 p.m.
- Draw border on a picture(DreamManor -- RC5.Cairo)
- Draw bar selector (DreamManor -- RC5.Cairo)
- Draw bar selector (Olaf -- Best Practice)
- Draw rect marker (DreamManor -- RC5.Cairo)

2020-06-25
- First released learning/rewriting framework

Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>