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.
Parameters:
| context (Context) | Context to draw with. |
| bounds (RectangleF) | Target bounds for model. |
| visuals (ColourModelVisuals) | 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.
Parameters:
| mouse (PointF) | Mouse coordinate. |
| buttons (MouseButtons) | Mouse buttons. |
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.
Parameters:
| motionData (object) | Mouse move begin record. |
| mouse (PointF) | New mouse location. |
| buttons (MouseButtons) | Mouse buttons involved. |
| keys (Keys) | Modifier keys involved. |
RespondToMouseUp
#Respond to a mouse up event.
Parameters:
| motionData (object) | |
| mouse (PointF) | |
| buttons (MouseButtons) | |
| keys (Keys) |
SetChannels
#Update the colour from channels.