private PcbRegion ReadFootprintRegion(BinaryReader reader) { var region = new PcbRegion(); var parameters = ReadFootprintCommonParametersAndOutline(reader, region, region.Outline); region.Parameters = parameters; return(region); }
private void RenderRegionPrimitive(Graphics g, PcbRegion region) { var brushColor = LayerMetadata.GetColor(region.Layer); using (var brush = new SolidBrush(brushColor)) { var outline = region.Outline.Select(coordxy => ScreenFromWorld(coordxy)).ToArray(); g.FillPolygon(brush, outline); } }
private void WriteFootprintRegion(BinaryWriter writer, PcbRegion region) { WriteFootprintCommonParametersAndOutline(writer, region, region.Parameters, region.Outline); }