Esempio n. 1
0
        private PcbRegion ReadFootprintRegion(BinaryReader reader)
        {
            var region     = new PcbRegion();
            var parameters = ReadFootprintCommonParametersAndOutline(reader, region, region.Outline);

            region.Parameters = parameters;
            return(region);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 private void WriteFootprintRegion(BinaryWriter writer, PcbRegion region)
 {
     WriteFootprintCommonParametersAndOutline(writer, region, region.Parameters, region.Outline);
 }