Properties
Filter
#Gets or sets the source for allowed colours. When not null, this property will limit displayed colours to the defined set of colours in the filter. Assigning a new filter will automatically wipe the display caches. Note that not all models necessarily constrain themselves to a filter, this property is a hint as much as anything.
Methods
Draw
#Draw this colour model into a graphics context.
void Draw()
context,
Context to draw with.
RectangleF
bounds,
Target bounds for model.
visuals
Visual properties.
GetChannels
#Gets the channel values of the current space. The current design of this api does not allow for a varying number of channels. This is potentially a big problem, potentially not. At present the only colour model which requires more than three channels is CMYK.
RespondToMouseDown
#Respond to a mouse down event on this model.
Returns: Motion record specific to this model.
RespondToMouseMove
#Respond to a mouse move event. These are only relayed when at least one mouse button is down.
void RespondToMouseMove()
motionData,
Mouse move begin record.
PointF
mouse,
New mouse location.
MouseButtons
buttons,
Mouse buttons involved.
Keys
keys
Modifier keys involved.
SetChannels
#Update the colour from channels.