ClearCanvas.ImageViewer.RoiGraphics.Roi.GetPixelCoordinates C# (CSharp) Метод

GetPixelCoordinates() публичный Метод

Gets an enumeration of the coordinates of points contained within the region of interest.
Regions of interest have no notion of coordinate system. All coordinates are inherently given relative to the image pixel space (i.e. CoordinateSystem.Source.)
public GetPixelCoordinates ( ) : IEnumerable
Результат IEnumerable
		public IEnumerable<PointF> GetPixelCoordinates()
		{
			Rectangle bounds = GetBoundingBoxRounded(true);
			for (int x = bounds.Left; x <= bounds.Right; x++)
			{
				for (int y = bounds.Top; y <= bounds.Bottom; y++)
				{
					PointF p = new PointF(x, y);
					if (Contains(p))
						yield return p;
				}
			}
		}