This method creates the render target and the solid-color brush. The CreateGraphicsResources method is shown in the topic Creating Direct2D Resources. ![]() ![]() If an error occurs during the execution of any of these methods, the error is signaled through the return value of the EndDraw method. The BeginDraw, Clear, and FillEllipse methods all have a void return type. All drawing operations must be placed between calls to BeginDraw and EndDraw. The ID2D1RenderTarget::EndDraw method signals the completion of drawing for this frame.If the x- and y-radii are the same, the result is a circle. An ellipse is specified by a center point and the x- and y-radii. The ID2D1RenderTarget::FillEllipse method draws a filled ellipse, using the specified brush for the fill.For more information, see Using Color in Direct2D. ![]() You can use the D2D1::ColorF class to initialize the structure. The color is given as a D2D1_COLOR_F structure.
0 Comments
Leave a Reply. |