Explore the newer scRGB color-space and see where it fits into the Windows Presentation Format color arena. See how to generate custom colors with the scRGB markup and through C# code.
- [Narrator] WPF supports two color spaces,…SRGB and SCRGB.…SRGB is the default color space that you see…on most consumer grade monitors,…and consumer grade computers.…SCRGB is a color space that was created by Microsoft…in collaboration with HP…back a few years before they created WPF.…It was back when they were working on GDI+.…SCRGB is what's called a wide-gamut color space.…It allows you to remap the colors…to have a better color range that match how our eyes see.…
The key thing for us to understand, in using this,…is it has a different syntax xaml and in code…for setting the alpha red, green, and blue channels.…That's the one I want to look at in this video.…Currently I have, this ellipse has a white fill…and a gray stroke.…I'll go to my stroke, and,…let's review how you would set this as a hexadecimal.…You would type in a pound symbol and then the alpha channel…and then the red, green and blue channels.…It's similar in SCRGB, except instead of using…byte values from 0-255, you use floating point numbers.…
- Working with brushes
- Painting properties
- Painting in code
- Working with RGB channels
- Using hexadecimal values
- Setting opacity and transparency
- Editing color in the Visual Studio Color Editor
- Using gradient brushes
- Decorating with tiled brushes
- Adding brushes and colors to resources
- Working with opacity masks
Skill Level Intermediate
Windows Presentation Foundation: 2 Layoutwith Walt Ritscher2h 13m Intermediate
1. Brush and Color Overview
3. The Visual Studio Color Editor
4. The Gradient Brushes
5. The Tiled Brushes
6. Brushes and Colors in Resources
7. Opacity Mask
Examples of opacity patterns6m 47s
Next steps1m 11s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.