-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
DrawingContext.xml
1206 lines (1145 loc) · 85.4 KB
/
DrawingContext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="DrawingContext" FullName="System.Windows.Media.DrawingContext">
<TypeSignature Language="C#" Value="public abstract class DrawingContext : System.Windows.Threading.DispatcherObject, IDisposable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit DrawingContext extends System.Windows.Threading.DispatcherObject implements class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:System.Windows.Media.DrawingContext" />
<TypeSignature Language="VB.NET" Value="Public MustInherit Class DrawingContext
Inherits DispatcherObject
Implements IDisposable" />
<TypeSignature Language="F#" Value="type DrawingContext = class
 inherit DispatcherObject
 interface IDisposable" />
<TypeSignature Language="C++ CLI" Value="public ref class DrawingContext abstract : System::Windows::Threading::DispatcherObject, IDisposable" />
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Windows.Threading.DispatcherObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Describes visual content using draw, push, and pop commands.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use a <xref:System.Windows.Media.DrawingContext> to populate a <xref:System.Windows.Media.Visual> or a <xref:System.Windows.Media.Drawing> with visual content.
Although the <xref:System.Windows.Media.DrawingContext> draw methods appear similar to the draw methods of the <xref:System.Drawing.Graphics?displayProperty=nameWithType> type, they function very differently: <xref:System.Windows.Media.DrawingContext> is used with a retained mode graphics system, while the <xref:System.Drawing.Graphics?displayProperty=nameWithType> type is used with an immediate mode graphics system. When you use a <xref:System.Windows.Media.DrawingContext> object's draw commands, you are actually storing a set of rendering instructions (although the exact storage mechanism depends on the type of object that supplies the <xref:System.Windows.Media.DrawingContext>) that will later be used by the graphics system; you are not drawing to the screen in real-time. For more information about how the Windows Presentation Foundation (WPF) graphics system works, see [WPF Graphics Rendering Overview](/dotnet/framework/wpf/graphics-multimedia/wpf-graphics-rendering-overview).
You never directly instantiate a <xref:System.Windows.Media.DrawingContext>; you can, however, acquire a drawing context from certain methods, such as <xref:System.Windows.Media.DrawingGroup.Open%2A?displayProperty=nameWithType> and <xref:System.Windows.Media.DrawingVisual.RenderOpen%2A?displayProperty=nameWithType>.
## Examples
The following example retrieves a <xref:System.Windows.Media.DrawingContext> from a <xref:System.Windows.Media.DrawingVisual> and uses it to draw a rectangle.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Media/DrawingContext/Overview/Window1.xaml.cs" id="Snippet101":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawingVisualSample/visualbasic/window1.xaml.vb" id="Snippet101":::
The next example demonstrates the <xref:System.Windows.Media.DrawingContext.PushOpacity%2A>, <xref:System.Windows.Media.DrawingContext.PushEffect%2A>, and <xref:System.Windows.Media.DrawingContext.Pop%2A> commands. The <xref:System.Windows.Media.DrawingContext> is obtained from a <xref:System.Windows.Media.DrawingGroup> and displayed using an <xref:System.Windows.Controls.Image> control.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Media/DrawingContext/Overview/PushEffectExample.cs" id="Snippetpusheffectexamplewholepage":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawingContext_procedural_snip/visualbasic/pusheffectexample.vb" id="Snippetpusheffectexamplewholepage":::
]]></format>
</remarks>
<altmember cref="T:System.Windows.Media.DrawingGroup" />
<altmember cref="T:System.Windows.Media.Drawing" />
</Docs>
<Members>
<Member MemberName="Close">
<MemberSignature Language="C#" Value="public abstract void Close ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Close() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.Close" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub Close ()" />
<MemberSignature Language="F#" Value="abstract member Close : unit -> unit" Usage="drawingContext.Close " />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void Close();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Closes the <see cref="T:System.Windows.Media.DrawingContext" /> and flushes the content. Afterward, the <see cref="T:System.Windows.Media.DrawingContext" /> cannot be modified.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A <xref:System.Windows.Media.DrawingContext> must be closed before its content can be rendered, but after it has been closed, it cannot be modified. This call does not require all Push calls to have been Popped.
]]></format>
</remarks>
<exception cref="T:System.ObjectDisposedException">This object has already been closed or disposed.</exception>
</Docs>
</Member>
<Member MemberName="DisposeCore">
<MemberSignature Language="C#" Value="protected abstract void DisposeCore ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void DisposeCore() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DisposeCore" />
<MemberSignature Language="VB.NET" Value="Protected MustOverride Sub DisposeCore ()" />
<MemberSignature Language="F#" Value="abstract member DisposeCore : unit -> unit" Usage="drawingContext.DisposeCore " />
<MemberSignature Language="C++ CLI" Value="protected:
 abstract void DisposeCore();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Releases all resources used by the <see cref="T:System.Windows.Media.DrawingContext" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Do not call this method directly from your code; use the <xref:System.Windows.Media.DrawingContext.System%23IDisposable%23Dispose%2A> method instead.
]]></format>
</remarks>
<exception cref="T:System.ObjectDisposedException">The object has already been closed or disposed.</exception>
<altmember cref="M:System.Windows.Media.DrawingContext.System#IDisposable#Dispose" />
</Docs>
</Member>
<Member MemberName="DrawDrawing">
<MemberSignature Language="C#" Value="public abstract void DrawDrawing (System.Windows.Media.Drawing drawing);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawDrawing(class System.Windows.Media.Drawing drawing) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawDrawing(System.Windows.Media.Drawing)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawDrawing (drawing As Drawing)" />
<MemberSignature Language="F#" Value="abstract member DrawDrawing : System.Windows.Media.Drawing -> unit" Usage="drawingContext.DrawDrawing drawing" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawDrawing(System::Windows::Media::Drawing ^ drawing);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="drawing" Type="System.Windows.Media.Drawing" />
</Parameters>
<Docs>
<param name="drawing">The drawing to append.</param>
<summary>Draws the specified <see cref="T:System.Windows.Media.Drawing" /> object.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<MemberGroup MemberName="DrawEllipse">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Draws an ellipse.</summary>
</Docs>
</MemberGroup>
<Member MemberName="DrawEllipse">
<MemberSignature Language="C#" Value="public abstract void DrawEllipse (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Point center, double radiusX, double radiusY);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawEllipse(class System.Windows.Media.Brush brush, class System.Windows.Media.Pen pen, valuetype System.Windows.Point center, float64 radiusX, float64 radiusY) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawEllipse(System.Windows.Media.Brush,System.Windows.Media.Pen,System.Windows.Point,System.Double,System.Double)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawEllipse (brush As Brush, pen As Pen, center As Point, radiusX As Double, radiusY As Double)" />
<MemberSignature Language="F#" Value="abstract member DrawEllipse : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Point * double * double -> unit" Usage="drawingContext.DrawEllipse (brush, pen, center, radiusX, radiusY)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawEllipse(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Point center, double radiusX, double radiusY);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="brush" Type="System.Windows.Media.Brush" />
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="center" Type="System.Windows.Point" />
<Parameter Name="radiusX" Type="System.Double" />
<Parameter Name="radiusY" Type="System.Double" />
</Parameters>
<Docs>
<param name="brush">The brush with which to fill the ellipse. This is optional, and can be <see langword="null" />. If the brush is <see langword="null" />, no fill is drawn.</param>
<param name="pen">The pen with which to stroke the ellipse. This is optional, and can be <see langword="null" />. If the pen is <see langword="null" />, no stroke is drawn.</param>
<param name="center">The location of the center of the ellipse.</param>
<param name="radiusX">The horizontal radius of the ellipse.</param>
<param name="radiusY">The vertical radius of the ellipse.</param>
<summary>Draws an ellipse with the specified <see cref="T:System.Windows.Media.Brush" /> and <see cref="T:System.Windows.Media.Pen" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The brush and the pen can both be `null`. If the brush is `null`, then no fill is performed. If the pen is `null`, then no stoke is performed. If both the pen and the brush are `null`, then the drawing is not visible.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawEllipse">
<MemberSignature Language="C#" Value="public abstract void DrawEllipse (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Point center, System.Windows.Media.Animation.AnimationClock centerAnimations, double radiusX, System.Windows.Media.Animation.AnimationClock radiusXAnimations, double radiusY, System.Windows.Media.Animation.AnimationClock radiusYAnimations);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawEllipse(class System.Windows.Media.Brush brush, class System.Windows.Media.Pen pen, valuetype System.Windows.Point center, class System.Windows.Media.Animation.AnimationClock centerAnimations, float64 radiusX, class System.Windows.Media.Animation.AnimationClock radiusXAnimations, float64 radiusY, class System.Windows.Media.Animation.AnimationClock radiusYAnimations) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawEllipse(System.Windows.Media.Brush,System.Windows.Media.Pen,System.Windows.Point,System.Windows.Media.Animation.AnimationClock,System.Double,System.Windows.Media.Animation.AnimationClock,System.Double,System.Windows.Media.Animation.AnimationClock)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawEllipse (brush As Brush, pen As Pen, center As Point, centerAnimations As AnimationClock, radiusX As Double, radiusXAnimations As AnimationClock, radiusY As Double, radiusYAnimations As AnimationClock)" />
<MemberSignature Language="F#" Value="abstract member DrawEllipse : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Point * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock -> unit" Usage="drawingContext.DrawEllipse (brush, pen, center, centerAnimations, radiusX, radiusXAnimations, radiusY, radiusYAnimations)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawEllipse(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Point center, System::Windows::Media::Animation::AnimationClock ^ centerAnimations, double radiusX, System::Windows::Media::Animation::AnimationClock ^ radiusXAnimations, double radiusY, System::Windows::Media::Animation::AnimationClock ^ radiusYAnimations);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="brush" Type="System.Windows.Media.Brush" />
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="center" Type="System.Windows.Point" />
<Parameter Name="centerAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
<Parameter Name="radiusX" Type="System.Double" />
<Parameter Name="radiusXAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
<Parameter Name="radiusY" Type="System.Double" />
<Parameter Name="radiusYAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
</Parameters>
<Docs>
<param name="brush">The brush with which to fill the ellipse. This is optional, and can be <see langword="null" />. If the brush is <see langword="null" />, no fill is drawn.</param>
<param name="pen">The pen with which to stroke the ellipse. This is optional, and can be <see langword="null" />. If the pen is <see langword="null" />, no stroke is drawn.</param>
<param name="center">The location of the center of the ellipse.</param>
<param name="centerAnimations">The clock with which to animate the ellipse's center position, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Windows.Point" /> objects.</param>
<param name="radiusX">The horizontal radius of the ellipse.</param>
<param name="radiusXAnimations">The clock with which to animate the ellipse's x-radius, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Double" /> objects.</param>
<param name="radiusY">The vertical radius of the ellipse.</param>
<param name="radiusYAnimations">The clock with which to animate the ellipse's y-radius, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Double" /> objects.</param>
<summary>Draws an ellipse with the specified <see cref="T:System.Windows.Media.Brush" /> and <see cref="T:System.Windows.Media.Pen" /> and applies the specified animation clocks.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The brush and the pen can both be `null`. If the brush is `null`, then no fill is performed. If the pen is `null`, then no stoke is performed. If both the pen and the brush are `null`, then the drawing is not visible.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawGeometry">
<MemberSignature Language="C#" Value="public abstract void DrawGeometry (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Media.Geometry geometry);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawGeometry(class System.Windows.Media.Brush brush, class System.Windows.Media.Pen pen, class System.Windows.Media.Geometry geometry) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawGeometry(System.Windows.Media.Brush,System.Windows.Media.Pen,System.Windows.Media.Geometry)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawGeometry (brush As Brush, pen As Pen, geometry As Geometry)" />
<MemberSignature Language="F#" Value="abstract member DrawGeometry : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Media.Geometry -> unit" Usage="drawingContext.DrawGeometry (brush, pen, geometry)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawGeometry(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Media::Geometry ^ geometry);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="brush" Type="System.Windows.Media.Brush" />
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="geometry" Type="System.Windows.Media.Geometry" />
</Parameters>
<Docs>
<param name="brush">The <see cref="T:System.Windows.Media.Brush" /> with which to fill the <see cref="T:System.Windows.Media.Geometry" />. This is optional, and can be <see langword="null" />. If the brush is <see langword="null" />, no fill is drawn.</param>
<param name="pen">The <see cref="T:System.Windows.Media.Pen" /> with which to stroke the <see cref="T:System.Windows.Media.Geometry" />. This is optional, and can be <see langword="null" />. If the pen is <see langword="null" />, no stroke is drawn.</param>
<param name="geometry">The <see cref="T:System.Windows.Media.Geometry" /> to draw.</param>
<summary>Draws the specified <see cref="T:System.Windows.Media.Geometry" /> using the specified <see cref="T:System.Windows.Media.Brush" /> and <see cref="T:System.Windows.Media.Pen" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DrawGlyphRun">
<MemberSignature Language="C#" Value="public abstract void DrawGlyphRun (System.Windows.Media.Brush foregroundBrush, System.Windows.Media.GlyphRun glyphRun);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawGlyphRun(class System.Windows.Media.Brush foregroundBrush, class System.Windows.Media.GlyphRun glyphRun) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawGlyphRun(System.Windows.Media.Brush,System.Windows.Media.GlyphRun)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawGlyphRun (foregroundBrush As Brush, glyphRun As GlyphRun)" />
<MemberSignature Language="F#" Value="abstract member DrawGlyphRun : System.Windows.Media.Brush * System.Windows.Media.GlyphRun -> unit" Usage="drawingContext.DrawGlyphRun (foregroundBrush, glyphRun)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawGlyphRun(System::Windows::Media::Brush ^ foregroundBrush, System::Windows::Media::GlyphRun ^ glyphRun);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="foregroundBrush" Type="System.Windows.Media.Brush" />
<Parameter Name="glyphRun" Type="System.Windows.Media.GlyphRun" />
</Parameters>
<Docs>
<param name="foregroundBrush">The brush used to paint the text.</param>
<param name="glyphRun">The text to draw.</param>
<summary>Draws the specified text.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<MemberGroup MemberName="DrawImage">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Draws an image into the region defined by the specified <see cref="T:System.Windows.Rect" />.</summary>
</Docs>
</MemberGroup>
<Member MemberName="DrawImage">
<MemberSignature Language="C#" Value="public abstract void DrawImage (System.Windows.Media.ImageSource imageSource, System.Windows.Rect rectangle);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawImage(class System.Windows.Media.ImageSource imageSource, valuetype System.Windows.Rect rectangle) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawImage(System.Windows.Media.ImageSource,System.Windows.Rect)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawImage (imageSource As ImageSource, rectangle As Rect)" />
<MemberSignature Language="F#" Value="abstract member DrawImage : System.Windows.Media.ImageSource * System.Windows.Rect -> unit" Usage="drawingContext.DrawImage (imageSource, rectangle)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawImage(System::Windows::Media::ImageSource ^ imageSource, System::Windows::Rect rectangle);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="imageSource" Type="System.Windows.Media.ImageSource" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
</Parameters>
<Docs>
<param name="imageSource">The image to draw.</param>
<param name="rectangle">The region in which to draw <c>bitmapSource</c>.</param>
<summary>Draws an image into the region defined by the specified <see cref="T:System.Windows.Rect" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DrawImage">
<MemberSignature Language="C#" Value="public abstract void DrawImage (System.Windows.Media.ImageSource imageSource, System.Windows.Rect rectangle, System.Windows.Media.Animation.AnimationClock rectangleAnimations);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawImage(class System.Windows.Media.ImageSource imageSource, valuetype System.Windows.Rect rectangle, class System.Windows.Media.Animation.AnimationClock rectangleAnimations) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawImage(System.Windows.Media.ImageSource,System.Windows.Rect,System.Windows.Media.Animation.AnimationClock)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawImage (imageSource As ImageSource, rectangle As Rect, rectangleAnimations As AnimationClock)" />
<MemberSignature Language="F#" Value="abstract member DrawImage : System.Windows.Media.ImageSource * System.Windows.Rect * System.Windows.Media.Animation.AnimationClock -> unit" Usage="drawingContext.DrawImage (imageSource, rectangle, rectangleAnimations)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawImage(System::Windows::Media::ImageSource ^ imageSource, System::Windows::Rect rectangle, System::Windows::Media::Animation::AnimationClock ^ rectangleAnimations);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="imageSource" Type="System.Windows.Media.ImageSource" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
<Parameter Name="rectangleAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
</Parameters>
<Docs>
<param name="imageSource">The image to draw.</param>
<param name="rectangle">The region in which to draw <c>bitmapSource</c>.</param>
<param name="rectangleAnimations">The clock with which to animate the rectangle's size and dimensions, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Windows.Rect" /> objects.</param>
<summary>Draws an image into the region defined by the specified <see cref="T:System.Windows.Rect" /> and applies the specified animation clock.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<MemberGroup MemberName="DrawLine">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Draws a line with the specified <see cref="T:System.Windows.Media.Pen" />.</summary>
</Docs>
</MemberGroup>
<Member MemberName="DrawLine">
<MemberSignature Language="C#" Value="public abstract void DrawLine (System.Windows.Media.Pen pen, System.Windows.Point point0, System.Windows.Point point1);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawLine(class System.Windows.Media.Pen pen, valuetype System.Windows.Point point0, valuetype System.Windows.Point point1) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawLine(System.Windows.Media.Pen,System.Windows.Point,System.Windows.Point)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawLine (pen As Pen, point0 As Point, point1 As Point)" />
<MemberSignature Language="F#" Value="abstract member DrawLine : System.Windows.Media.Pen * System.Windows.Point * System.Windows.Point -> unit" Usage="drawingContext.DrawLine (pen, point0, point1)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawLine(System::Windows::Media::Pen ^ pen, System::Windows::Point point0, System::Windows::Point point1);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="point0" Type="System.Windows.Point" />
<Parameter Name="point1" Type="System.Windows.Point" />
</Parameters>
<Docs>
<param name="pen">The pen with which to stroke the line.</param>
<param name="point0">The start point of the line.</param>
<param name="point1">The end point of the line.</param>
<summary>Draws a line between the specified points using the specified <see cref="T:System.Windows.Media.Pen" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DrawLine">
<MemberSignature Language="C#" Value="public abstract void DrawLine (System.Windows.Media.Pen pen, System.Windows.Point point0, System.Windows.Media.Animation.AnimationClock point0Animations, System.Windows.Point point1, System.Windows.Media.Animation.AnimationClock point1Animations);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawLine(class System.Windows.Media.Pen pen, valuetype System.Windows.Point point0, class System.Windows.Media.Animation.AnimationClock point0Animations, valuetype System.Windows.Point point1, class System.Windows.Media.Animation.AnimationClock point1Animations) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawLine(System.Windows.Media.Pen,System.Windows.Point,System.Windows.Media.Animation.AnimationClock,System.Windows.Point,System.Windows.Media.Animation.AnimationClock)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawLine (pen As Pen, point0 As Point, point0Animations As AnimationClock, point1 As Point, point1Animations As AnimationClock)" />
<MemberSignature Language="F#" Value="abstract member DrawLine : System.Windows.Media.Pen * System.Windows.Point * System.Windows.Media.Animation.AnimationClock * System.Windows.Point * System.Windows.Media.Animation.AnimationClock -> unit" Usage="drawingContext.DrawLine (pen, point0, point0Animations, point1, point1Animations)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawLine(System::Windows::Media::Pen ^ pen, System::Windows::Point point0, System::Windows::Media::Animation::AnimationClock ^ point0Animations, System::Windows::Point point1, System::Windows::Media::Animation::AnimationClock ^ point1Animations);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="point0" Type="System.Windows.Point" />
<Parameter Name="point0Animations" Type="System.Windows.Media.Animation.AnimationClock" />
<Parameter Name="point1" Type="System.Windows.Point" />
<Parameter Name="point1Animations" Type="System.Windows.Media.Animation.AnimationClock" />
</Parameters>
<Docs>
<param name="pen">The pen to stroke the line.</param>
<param name="point0">The start point of the line.</param>
<param name="point0Animations">The clock with which to animate the start point of the line, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Windows.Point" /> objects.</param>
<param name="point1">The end point of the line.</param>
<param name="point1Animations">The clock with which to animate the end point of the line, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Windows.Point" /> objects.</param>
<summary>Draws a line between the specified points using the specified <see cref="T:System.Windows.Media.Pen" /> and applies the specified animation clocks.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<MemberGroup MemberName="DrawRectangle">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Draws a rectangle.</summary>
</Docs>
</MemberGroup>
<Member MemberName="DrawRectangle">
<MemberSignature Language="C#" Value="public abstract void DrawRectangle (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Rect rectangle);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawRectangle(class System.Windows.Media.Brush brush, class System.Windows.Media.Pen pen, valuetype System.Windows.Rect rectangle) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawRectangle(System.Windows.Media.Brush,System.Windows.Media.Pen,System.Windows.Rect)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawRectangle (brush As Brush, pen As Pen, rectangle As Rect)" />
<MemberSignature Language="F#" Value="abstract member DrawRectangle : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Rect -> unit" Usage="drawingContext.DrawRectangle (brush, pen, rectangle)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawRectangle(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Rect rectangle);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="brush" Type="System.Windows.Media.Brush" />
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
</Parameters>
<Docs>
<param name="brush">The brush with which to fill the rectangle. This is optional, and can be <see langword="null" />. If the brush is <see langword="null" />, no fill is drawn.</param>
<param name="pen">The pen with which to stroke the rectangle. This is optional, and can be <see langword="null" />. If the pen is <see langword="null" />, no stroke is drawn.</param>
<param name="rectangle">The rectangle to draw.</param>
<summary>Draws a rectangle with the specified <see cref="T:System.Windows.Media.Brush" /> and <see cref="T:System.Windows.Media.Pen" />. The pen and the brush can be <see langword="null" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The brush and the pen can both be `null`. If the brush is `null`, then no fill is performed. If the pen is `null`, then no stroke is performed. If both the pen and the brush are `null`, then the drawing is not visible.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawRectangle">
<MemberSignature Language="C#" Value="public abstract void DrawRectangle (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Rect rectangle, System.Windows.Media.Animation.AnimationClock rectangleAnimations);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawRectangle(class System.Windows.Media.Brush brush, class System.Windows.Media.Pen pen, valuetype System.Windows.Rect rectangle, class System.Windows.Media.Animation.AnimationClock rectangleAnimations) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawRectangle(System.Windows.Media.Brush,System.Windows.Media.Pen,System.Windows.Rect,System.Windows.Media.Animation.AnimationClock)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawRectangle (brush As Brush, pen As Pen, rectangle As Rect, rectangleAnimations As AnimationClock)" />
<MemberSignature Language="F#" Value="abstract member DrawRectangle : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Rect * System.Windows.Media.Animation.AnimationClock -> unit" Usage="drawingContext.DrawRectangle (brush, pen, rectangle, rectangleAnimations)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawRectangle(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Rect rectangle, System::Windows::Media::Animation::AnimationClock ^ rectangleAnimations);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="brush" Type="System.Windows.Media.Brush" />
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
<Parameter Name="rectangleAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
</Parameters>
<Docs>
<param name="brush">The brush with which to fill the rectangle. This is optional, and can be <see langword="null" />. If the brush is <see langword="null" />, no fill is drawn.</param>
<param name="pen">The pen with which to stroke the rectangle. This is optional, and can be <see langword="null" />. If the pen is <see langword="null" />, no stroke is drawn.</param>
<param name="rectangle">The rectangle to draw.</param>
<param name="rectangleAnimations">The clock with which to animate the rectangle's size and dimensions, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Windows.Rect" /> objects.</param>
<summary>Draws a rectangle with the specified <see cref="T:System.Windows.Media.Brush" /> and <see cref="T:System.Windows.Media.Pen" /> and applies the specified animation clocks.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The brush and the pen can both be `null`. If the brush is `null`, then no fill is performed. If the pen is `null`, then no stoke is performed. If both the pen and the brush are `null`, then the drawing is not visible.
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="DrawRoundedRectangle">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Draws a rounded rectangle.</summary>
</Docs>
</MemberGroup>
<Member MemberName="DrawRoundedRectangle">
<MemberSignature Language="C#" Value="public abstract void DrawRoundedRectangle (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Rect rectangle, double radiusX, double radiusY);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawRoundedRectangle(class System.Windows.Media.Brush brush, class System.Windows.Media.Pen pen, valuetype System.Windows.Rect rectangle, float64 radiusX, float64 radiusY) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawRoundedRectangle(System.Windows.Media.Brush,System.Windows.Media.Pen,System.Windows.Rect,System.Double,System.Double)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawRoundedRectangle (brush As Brush, pen As Pen, rectangle As Rect, radiusX As Double, radiusY As Double)" />
<MemberSignature Language="F#" Value="abstract member DrawRoundedRectangle : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Rect * double * double -> unit" Usage="drawingContext.DrawRoundedRectangle (brush, pen, rectangle, radiusX, radiusY)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawRoundedRectangle(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Rect rectangle, double radiusX, double radiusY);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="brush" Type="System.Windows.Media.Brush" />
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
<Parameter Name="radiusX" Type="System.Double" />
<Parameter Name="radiusY" Type="System.Double" />
</Parameters>
<Docs>
<param name="brush">The brush used to fill the rectangle.</param>
<param name="pen">The pen used to stroke the rectangle.</param>
<param name="rectangle">The rectangle to draw.</param>
<param name="radiusX">The radius in the X dimension of the rounded corners. This value will be clamped to the range of 0 to <see cref="P:System.Windows.Rect.Width" />/2.</param>
<param name="radiusY">The radius in the Y dimension of the rounded corners. This value will be clamped to a value between 0 to <see cref="P:System.Windows.Rect.Height" />/2.</param>
<summary>Draws a rounded rectangle with the specified <see cref="T:System.Windows.Media.Brush" /> and <see cref="T:System.Windows.Media.Pen" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The brush and the pen can both be `null`. If the brush is `null`, then no fill is performed. If the pen is `null`, then no stoke is performed. If both the pen and the brush are `null`, then the drawing is not visible.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawRoundedRectangle">
<MemberSignature Language="C#" Value="public abstract void DrawRoundedRectangle (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Rect rectangle, System.Windows.Media.Animation.AnimationClock rectangleAnimations, double radiusX, System.Windows.Media.Animation.AnimationClock radiusXAnimations, double radiusY, System.Windows.Media.Animation.AnimationClock radiusYAnimations);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawRoundedRectangle(class System.Windows.Media.Brush brush, class System.Windows.Media.Pen pen, valuetype System.Windows.Rect rectangle, class System.Windows.Media.Animation.AnimationClock rectangleAnimations, float64 radiusX, class System.Windows.Media.Animation.AnimationClock radiusXAnimations, float64 radiusY, class System.Windows.Media.Animation.AnimationClock radiusYAnimations) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawRoundedRectangle(System.Windows.Media.Brush,System.Windows.Media.Pen,System.Windows.Rect,System.Windows.Media.Animation.AnimationClock,System.Double,System.Windows.Media.Animation.AnimationClock,System.Double,System.Windows.Media.Animation.AnimationClock)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawRoundedRectangle (brush As Brush, pen As Pen, rectangle As Rect, rectangleAnimations As AnimationClock, radiusX As Double, radiusXAnimations As AnimationClock, radiusY As Double, radiusYAnimations As AnimationClock)" />
<MemberSignature Language="F#" Value="abstract member DrawRoundedRectangle : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Rect * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock -> unit" Usage="drawingContext.DrawRoundedRectangle (brush, pen, rectangle, rectangleAnimations, radiusX, radiusXAnimations, radiusY, radiusYAnimations)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawRoundedRectangle(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Rect rectangle, System::Windows::Media::Animation::AnimationClock ^ rectangleAnimations, double radiusX, System::Windows::Media::Animation::AnimationClock ^ radiusXAnimations, double radiusY, System::Windows::Media::Animation::AnimationClock ^ radiusYAnimations);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="brush" Type="System.Windows.Media.Brush" />
<Parameter Name="pen" Type="System.Windows.Media.Pen" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
<Parameter Name="rectangleAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
<Parameter Name="radiusX" Type="System.Double" />
<Parameter Name="radiusXAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
<Parameter Name="radiusY" Type="System.Double" />
<Parameter Name="radiusYAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
</Parameters>
<Docs>
<param name="brush">The brush used to fill the rectangle, or <see langword="null" /> for no fill.</param>
<param name="pen">The pen used to stroke the rectangle, or <see langword="null" /> for no stroke.</param>
<param name="rectangle">The rectangle to draw.</param>
<param name="rectangleAnimations">The clock with which to animate the rectangle's size and dimensions, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Windows.Rect" /> objects.</param>
<param name="radiusX">The radius in the X dimension of the rounded corners. This value will be clamped to the range of 0 to <see cref="P:System.Windows.Rect.Width" />/2</param>
<param name="radiusXAnimations">The clock with which to animate the rectangle's <paramref name="radiusX" /> value, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Double" /> values.</param>
<param name="radiusY">The radius in the Y dimension of the rounded corners. This value will be clamped to a value between 0 to <see cref="P:System.Windows.Rect.Height" />/2.</param>
<param name="radiusYAnimations">The clock with which to animate the rectangle's <paramref name="radiusY" /> value, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Double" /> values.</param>
<summary>Draws a rounded rectangle with the specified <see cref="T:System.Windows.Media.Brush" /> and <see cref="T:System.Windows.Media.Pen" /> and applies the specified animation clocks.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The brush and the pen can both be `null`. If the brush is `null`, then no fill is performed. If the pen is `null`, then no stoke is performed. If both the pen and the brush are `null`, then the drawing is not visible.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawText">
<MemberSignature Language="C#" Value="public void DrawText (System.Windows.Media.FormattedText formattedText, System.Windows.Point origin);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void DrawText(class System.Windows.Media.FormattedText formattedText, valuetype System.Windows.Point origin) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawText(System.Windows.Media.FormattedText,System.Windows.Point)" />
<MemberSignature Language="VB.NET" Value="Public Sub DrawText (formattedText As FormattedText, origin As Point)" />
<MemberSignature Language="F#" Value="member this.DrawText : System.Windows.Media.FormattedText * System.Windows.Point -> unit" Usage="drawingContext.DrawText (formattedText, origin)" />
<MemberSignature Language="C++ CLI" Value="public:
 void DrawText(System::Windows::Media::FormattedText ^ formattedText, System::Windows::Point origin);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="formattedText" Type="System.Windows.Media.FormattedText" />
<Parameter Name="origin" Type="System.Windows.Point" />
</Parameters>
<Docs>
<param name="formattedText">The formatted text to be drawn.</param>
<param name="origin">The location where the text is to be drawn.</param>
<summary>Draws formatted text at the specified location.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ObjectDisposedException">The object has already been closed or disposed.</exception>
</Docs>
</Member>
<MemberGroup MemberName="DrawVideo">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Draw a video into the specified region.</summary>
</Docs>
</MemberGroup>
<Member MemberName="DrawVideo">
<MemberSignature Language="C#" Value="public abstract void DrawVideo (System.Windows.Media.MediaPlayer player, System.Windows.Rect rectangle);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawVideo(class System.Windows.Media.MediaPlayer player, valuetype System.Windows.Rect rectangle) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawVideo(System.Windows.Media.MediaPlayer,System.Windows.Rect)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawVideo (player As MediaPlayer, rectangle As Rect)" />
<MemberSignature Language="F#" Value="abstract member DrawVideo : System.Windows.Media.MediaPlayer * System.Windows.Rect -> unit" Usage="drawingContext.DrawVideo (player, rectangle)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawVideo(System::Windows::Media::MediaPlayer ^ player, System::Windows::Rect rectangle);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="player" Type="System.Windows.Media.MediaPlayer" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
</Parameters>
<Docs>
<param name="player">The media to draw.</param>
<param name="rectangle">The region in which to draw <paramref name="player" />.</param>
<summary>Draws a video into the specified region.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Note that the media will be stretched to fit inside the area defined by the rectangle parameter. If rectangle and media have different aspect ratios, distortion will occur. For more control over how media is used to fill an area, use the <xref:System.Windows.Media.DrawingContext.DrawRectangle%2A> command to draw a rectangle and fill it with a <xref:System.Windows.Media.VisualBrush> that contains media.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawVideo">
<MemberSignature Language="C#" Value="public abstract void DrawVideo (System.Windows.Media.MediaPlayer player, System.Windows.Rect rectangle, System.Windows.Media.Animation.AnimationClock rectangleAnimations);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawVideo(class System.Windows.Media.MediaPlayer player, valuetype System.Windows.Rect rectangle, class System.Windows.Media.Animation.AnimationClock rectangleAnimations) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.DrawVideo(System.Windows.Media.MediaPlayer,System.Windows.Rect,System.Windows.Media.Animation.AnimationClock)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub DrawVideo (player As MediaPlayer, rectangle As Rect, rectangleAnimations As AnimationClock)" />
<MemberSignature Language="F#" Value="abstract member DrawVideo : System.Windows.Media.MediaPlayer * System.Windows.Rect * System.Windows.Media.Animation.AnimationClock -> unit" Usage="drawingContext.DrawVideo (player, rectangle, rectangleAnimations)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void DrawVideo(System::Windows::Media::MediaPlayer ^ player, System::Windows::Rect rectangle, System::Windows::Media::Animation::AnimationClock ^ rectangleAnimations);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="player" Type="System.Windows.Media.MediaPlayer" />
<Parameter Name="rectangle" Type="System.Windows.Rect" />
<Parameter Name="rectangleAnimations" Type="System.Windows.Media.Animation.AnimationClock" />
</Parameters>
<Docs>
<param name="player">The media to draw.</param>
<param name="rectangle">The area in which to draw the media.</param>
<param name="rectangleAnimations">The clock with which to animate the rectangle's size and dimensions, or <see langword="null" /> for no animation. This clock must be created from an <see cref="T:System.Windows.Media.Animation.AnimationTimeline" /> that can animate <see cref="T:System.Windows.Rect" /> objects.</param>
<summary>Draws a video into the specified region and applies the specified animation clock.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Note that the media will be stretched to fit inside the area defined by the rectangle parameter. If rectangle and media have different aspect ratios, distortion will occur. For more control over how media is used to fill an area, use the <xref:System.Windows.Media.DrawingContext.DrawRectangle%2A> command to draw a rectangle and fill it with a <xref:System.Windows.Media.VisualBrush> that contains media.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Pop">
<MemberSignature Language="C#" Value="public abstract void Pop ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Pop() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.Pop" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub Pop ()" />
<MemberSignature Language="F#" Value="abstract member Pop : unit -> unit" Usage="drawingContext.Pop " />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void Pop();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Pops the last opacity mask, opacity, clip, effect, or transform operation that was pushed onto the drawing context.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Once an operation is popped, it is no longer applied to subsequent drawing commands.
## Examples
The following example shows the effect of the <xref:System.Windows.Media.DrawingContext.Pop%2A> command.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Media/DrawingContext/Overview/PopExample.cs" id="Snippetpopexamplewholepage":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawingContext_procedural_snip/visualbasic/popexample.vb" id="Snippetpopexamplewholepage":::
The following illustration shows this example's output:
![Rectangles drawn with different opacity values](~/add/media/graphicsmm-drawingcontextpopexample.gif "Rectangles drawn with different opacity values")
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="PushClip">
<MemberSignature Language="C#" Value="public abstract void PushClip (System.Windows.Media.Geometry clipGeometry);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void PushClip(class System.Windows.Media.Geometry clipGeometry) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.PushClip(System.Windows.Media.Geometry)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub PushClip (clipGeometry As Geometry)" />
<MemberSignature Language="F#" Value="abstract member PushClip : System.Windows.Media.Geometry -> unit" Usage="drawingContext.PushClip clipGeometry" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void PushClip(System::Windows::Media::Geometry ^ clipGeometry);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="clipGeometry" Type="System.Windows.Media.Geometry" />
</Parameters>
<Docs>
<param name="clipGeometry">The clip region to apply to subsequent drawing commands.</param>
<summary>Pushes the specified clip region onto the drawing context.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The clip region applies to all subsequent drawing commands until it is removed by the <xref:System.Windows.Media.DrawingContext.Pop%2A> command.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="PushEffect">
<MemberSignature Language="C#" Value="public abstract void PushEffect (System.Windows.Media.Effects.BitmapEffect effect, System.Windows.Media.Effects.BitmapEffectInput effectInput);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void PushEffect(class System.Windows.Media.Effects.BitmapEffect effect, class System.Windows.Media.Effects.BitmapEffectInput effectInput) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.PushEffect(System.Windows.Media.Effects.BitmapEffect,System.Windows.Media.Effects.BitmapEffectInput)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub PushEffect (effect As BitmapEffect, effectInput As BitmapEffectInput)" />
<MemberSignature Language="F#" Value="abstract member PushEffect : System.Windows.Media.Effects.BitmapEffect * System.Windows.Media.Effects.BitmapEffectInput -> unit" Usage="drawingContext.PushEffect (effect, effectInput)" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void PushEffect(System::Windows::Media::Effects::BitmapEffect ^ effect, System::Windows::Media::Effects::BitmapEffectInput ^ effectInput);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeName Language="C#">[System.Obsolete("BitmapEffects are deprecated and no longer function. Consider using Effects where appropriate instead.")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("BitmapEffects are deprecated and no longer function. Consider using Effects where appropriate instead.")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="effect" Type="System.Windows.Media.Effects.BitmapEffect" />
<Parameter Name="effectInput" Type="System.Windows.Media.Effects.BitmapEffectInput" />
</Parameters>
<Docs>
<param name="effect">The effect to apply to subsequent drawings.</param>
<param name="effectInput">The area to which the effect is applied, or <see langword="null" /> if the effect is to be applied to the entire area of subsequent drawings.</param>
<summary>Pushes the specified <see cref="T:System.Windows.Media.Effects.BitmapEffect" /> onto the drawing context.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The effect is applied to all subsequent drawing operations until it is removed by the <xref:System.Windows.Media.DrawingContext.Pop%2A> command.
## Examples
The following example demonstrates the <xref:System.Windows.Media.DrawingContext.PushOpacity%2A>, <xref:System.Windows.Media.DrawingContext.PushEffect%2A>, and <xref:System.Windows.Media.DrawingContext.Pop%2A> commands.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Media/DrawingContext/Overview/PushEffectExample.cs" id="Snippetpusheffectexamplewholepage":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawingContext_procedural_snip/visualbasic/pusheffectexample.vb" id="Snippetpusheffectexamplewholepage":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="PushGuidelineSet">
<MemberSignature Language="C#" Value="public abstract void PushGuidelineSet (System.Windows.Media.GuidelineSet guidelines);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void PushGuidelineSet(class System.Windows.Media.GuidelineSet guidelines) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.PushGuidelineSet(System.Windows.Media.GuidelineSet)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub PushGuidelineSet (guidelines As GuidelineSet)" />
<MemberSignature Language="F#" Value="abstract member PushGuidelineSet : System.Windows.Media.GuidelineSet -> unit" Usage="drawingContext.PushGuidelineSet guidelines" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void PushGuidelineSet(System::Windows::Media::GuidelineSet ^ guidelines);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="guidelines" Type="System.Windows.Media.GuidelineSet" />
</Parameters>
<Docs>
<param name="guidelines">The guideline set to apply to subsequent drawing commands.</param>
<summary>Pushes the specified <see cref="T:System.Windows.Media.GuidelineSet" /> onto the drawing context.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The guideline set applies to all subsequent drawing commands until it is removed by the <xref:System.Windows.Media.DrawingContext.Pop%2A> operation.
]]></format>
</remarks>
<altmember cref="T:System.Windows.Media.GuidelineSet" />
</Docs>
</Member>
<MemberGroup MemberName="PushOpacity">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Pushes the specified opacity setting onto the drawing context.</summary>
</Docs>
</MemberGroup>
<Member MemberName="PushOpacity">
<MemberSignature Language="C#" Value="public abstract void PushOpacity (double opacity);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void PushOpacity(float64 opacity) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Media.DrawingContext.PushOpacity(System.Double)" />
<MemberSignature Language="VB.NET" Value="Public MustOverride Sub PushOpacity (opacity As Double)" />
<MemberSignature Language="F#" Value="abstract member PushOpacity : double -> unit" Usage="drawingContext.PushOpacity opacity" />
<MemberSignature Language="C++ CLI" Value="public:
 abstract void PushOpacity(double opacity);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>