Brush that determines the characteristics of the fill.
rect
Rectangle
Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes.
startAngle
Single
Angle in degrees measured clockwise from the x-axis to the first side of the pie section.
sweepAngle
Single
Angle in degrees measured clockwise from the startAngle parameter to the second side of the pie section.
Exceptions
exception
condition
ArgumentNullException
brush is null.
Examples
The following example shows how to compose an animated GIF image from individual GIF blocks.
[C#]stringdir="c:\\temp\\";// Create a GIF image 100 x 100 px.// The first block is fully black by default.using(Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlockfirstBlock=newAspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100,100))using(Aspose.Imaging.FileFormats.Gif.GifImagegifImage=newAspose.Imaging.FileFormats.Gif.GifImage(firstBlock)){// The first circle is redAspose.Imaging.Brushes.SolidBrushbrush1=newAspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Red);// The second circle is blackAspose.Imaging.Brushes.SolidBrushbrush2=newAspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Black);// Gradually inscrease the angle of the red arc shape.for(intangle=10;angle<=360;angle+=10){Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlockblock=newAspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100,100);Aspose.Imaging.Graphicsgr=newAspose.Imaging.Graphics(block);gr.FillPie(brush1,block.Bounds,0,angle);gifImage.AddBlock(block);}// Gradually inscrease the angle of the black arc and wipe out the red arc.for(intangle=10;angle<=360;angle+=10){Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlockblock=newAspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100,100);Aspose.Imaging.Graphicsgr=newAspose.Imaging.Graphics(block);gr.FillPie(brush2,block.Bounds,0,angle);gr.FillPie(brush1,block.Bounds,angle,360-angle);gifImage.AddBlock(block);}gifImage.Save(dir+"animated_radar.gif");}