Beispiel #1
0
 /// <summary>
 /// Finds the smallest and largest X coordinates of the pixels whose alpha channel
 /// exceeds the specified threshold. The Y coordinates of the result cover the entire image.
 /// </summary>
 public PixelRect PreciseWidth(int alphaThreshold = 0)
 {
     using (UseRead())
         return(PixelRect.FromLeftRight(PreciseLeft(alphaThreshold), PreciseRight(alphaThreshold)));
 }