/// <summary> /// Loads a tacton from image. /// For transcoding an image to a tactile matrix, the static available ImageRender is used. /// </summary> /// <param name="img">The image to transcode into a tactile matrix.</param> /// <returns>the tactile matrix representation of the tacton.</returns> /// <remarks>By default, dark pixels of the given image will be turned into raised pins; light pixels /// into lowered pins.</remarks> public static bool[,] LoadTactonFromImage(Image img) { bool[,] tacton = new bool[0, 0]; if (img != null && ImageRenderer != null) { tacton = ImageRenderer.RenderMatrix(buildImageDummyViewRange(img), img); } return(tacton); }