Browse Source

add and fix comments -- note on making colours in Skia Sharp.

master
Craig Oates 6 years ago
parent
commit
74328280d4
  1. 4
      DeathSocket/ImageServices.fs

4
DeathSocket/ImageServices.fs

@ -22,7 +22,7 @@
(* Note on Use of Temp File in Functions which Add A Grid Overlay (* Note on Use of Temp File in Functions which Add A Grid Overlay
=========================================================================== ===========================================================================
The temp. file is used in the functions below are there to convert images The temp. file is used in the functions below are there to convert images
with indexed pixels. Instead of listig them all, just assume any function with indexed pixels. Instead of listing them all, just assume any function
with a "*Spec" type as a parameter will use this "temp" file. *) with a "*Spec" type as a parameter will use this "temp" file. *)
let drawBrushSpecGrid (spec: BrushSpec) = let drawBrushSpecGrid (spec: BrushSpec) =
@ -68,6 +68,8 @@
stroke.Style <- SKPaintStyle.Stroke stroke.Style <- SKPaintStyle.Stroke
stroke.StrokeWidth <- float32 3 stroke.StrokeWidth <- float32 3
stroke.Color <- SKColors.BlueViolet stroke.Color <- SKColors.BlueViolet
// Note about generating colours in Skia Sharp.
//stroke.Color <- new SKColor (byte 1000, byte 5111, byte 4225, byte 255)
use imageFill = new SKPaint () use imageFill = new SKPaint ()
imageFill.Style <- SKPaintStyle.Fill imageFill.Style <- SKPaintStyle.Fill

Loading…
Cancel
Save