public class DrawingContext extends DispatcherObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Media.DrawingContext
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: PresentationCore
|
static java.lang.String |
className
Qualified class name: System.Windows.Media.DrawingContext
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DrawingContext() |
DrawingContext(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DrawingContext |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DrawingContext, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close()
Invokes the .NET member Close.
|
void |
DrawDrawing(Drawing drawing)
Invokes the .NET member DrawDrawing.
|
void |
DrawEllipse(Brush brush,
Pen pen,
Point center,
AnimationClock centerAnimations,
double radiusX,
AnimationClock radiusXAnimations,
double radiusY,
AnimationClock radiusYAnimations)
Invokes the .NET member DrawEllipse.
|
void |
DrawEllipse(Brush brush,
Pen pen,
Point center,
double radiusX,
double radiusY)
Invokes the .NET member DrawEllipse.
|
void |
DrawGeometry(Brush brush,
Pen pen,
Geometry geometry)
Invokes the .NET member DrawGeometry.
|
void |
DrawGlyphRun(Brush foregroundBrush,
GlyphRun glyphRun)
Invokes the .NET member DrawGlyphRun.
|
void |
DrawImage(ImageSource imageSource,
Rect rectangle)
Invokes the .NET member DrawImage.
|
void |
DrawImage(ImageSource imageSource,
Rect rectangle,
AnimationClock rectangleAnimations)
Invokes the .NET member DrawImage.
|
void |
DrawLine(Pen pen,
Point point0,
AnimationClock point0Animations,
Point point1,
AnimationClock point1Animations)
Invokes the .NET member DrawLine.
|
void |
DrawLine(Pen pen,
Point point0,
Point point1)
Invokes the .NET member DrawLine.
|
void |
DrawRectangle(Brush brush,
Pen pen,
Rect rectangle)
Invokes the .NET member DrawRectangle.
|
void |
DrawRectangle(Brush brush,
Pen pen,
Rect rectangle,
AnimationClock rectangleAnimations)
Invokes the .NET member DrawRectangle.
|
void |
DrawRoundedRectangle(Brush brush,
Pen pen,
Rect rectangle,
AnimationClock rectangleAnimations,
double radiusX,
AnimationClock radiusXAnimations,
double radiusY,
AnimationClock radiusYAnimations)
Invokes the .NET member DrawRoundedRectangle.
|
void |
DrawRoundedRectangle(Brush brush,
Pen pen,
Rect rectangle,
double radiusX,
double radiusY)
Invokes the .NET member DrawRoundedRectangle.
|
void |
DrawText(FormattedText formattedText,
Point origin)
Invokes the .NET member DrawText.
|
void |
DrawVideo(MediaPlayer player,
Rect rectangle)
Invokes the .NET member DrawVideo.
|
void |
DrawVideo(MediaPlayer player,
Rect rectangle,
AnimationClock rectangleAnimations)
Invokes the .NET member DrawVideo.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
void |
Pop()
Invokes the .NET member Pop.
|
void |
PushClip(Geometry clipGeometry)
Invokes the .NET member PushClip.
|
void |
PushEffect(BitmapEffect effect,
BitmapEffectInput effectInput)
Invokes the .NET member PushEffect.
|
void |
PushGuidelineSet(GuidelineSet guidelines)
Invokes the .NET member PushGuidelineSet.
|
void |
PushOpacity(double opacity)
Invokes the .NET member PushOpacity.
|
void |
PushOpacity(double opacity,
AnimationClock opacityAnimations)
Invokes the .NET member PushOpacity.
|
void |
PushOpacityMask(Brush opacityMask)
Invokes the .NET member PushOpacityMask.
|
void |
PushTransform(Transform transform)
Invokes the .NET member PushTransform.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
CheckAccess, getDispatcher, VerifyAccesspublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DrawingContext()
throws java.lang.Throwable
java.lang.Throwablepublic DrawingContext(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static DrawingContext cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DrawingContext, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDrawingContext instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawDrawing(Drawing drawing) throws java.lang.Throwable
drawing - the argument of type Drawingjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawEllipse(Brush brush, Pen pen, Point center, AnimationClock centerAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations) throws java.lang.Throwable
brush - the argument of type Brushpen - the argument of type Pencenter - the argument of type PointcenterAnimations - the argument of type AnimationClockradiusX - the argument of type doubleradiusXAnimations - the argument of type AnimationClockradiusY - the argument of type doubleradiusYAnimations - the argument of type AnimationClockjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawEllipse(Brush brush, Pen pen, Point center, double radiusX, double radiusY) throws java.lang.Throwable
brush - the argument of type Brushpen - the argument of type Pencenter - the argument of type PointradiusX - the argument of type doubleradiusY - the argument of type doublejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawGeometry(Brush brush, Pen pen, Geometry geometry) throws java.lang.Throwable
brush - the argument of type Brushpen - the argument of type Pengeometry - the argument of type Geometryjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun) throws java.lang.Throwable
foregroundBrush - the argument of type BrushglyphRun - the argument of type GlyphRunjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawImage(ImageSource imageSource, Rect rectangle) throws java.lang.Throwable
imageSource - the argument of type ImageSourcerectangle - the argument of type Rectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawImage(ImageSource imageSource, Rect rectangle, AnimationClock rectangleAnimations) throws java.lang.Throwable
imageSource - the argument of type ImageSourcerectangle - the argument of type RectrectangleAnimations - the argument of type AnimationClockjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawLine(Pen pen, Point point0, AnimationClock point0Animations, Point point1, AnimationClock point1Animations) throws java.lang.Throwable
pen - the argument of type Penpoint0 - the argument of type Pointpoint0Animations - the argument of type AnimationClockpoint1 - the argument of type Pointpoint1Animations - the argument of type AnimationClockjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawLine(Pen pen, Point point0, Point point1) throws java.lang.Throwable
pen - the argument of type Penpoint0 - the argument of type Pointpoint1 - the argument of type Pointjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawRectangle(Brush brush, Pen pen, Rect rectangle) throws java.lang.Throwable
brush - the argument of type Brushpen - the argument of type Penrectangle - the argument of type Rectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations) throws java.lang.Throwable
brush - the argument of type Brushpen - the argument of type Penrectangle - the argument of type RectrectangleAnimations - the argument of type AnimationClockjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations) throws java.lang.Throwable
brush - the argument of type Brushpen - the argument of type Penrectangle - the argument of type RectrectangleAnimations - the argument of type AnimationClockradiusX - the argument of type doubleradiusXAnimations - the argument of type AnimationClockradiusY - the argument of type doubleradiusYAnimations - the argument of type AnimationClockjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, double radiusX, double radiusY) throws java.lang.Throwable
brush - the argument of type Brushpen - the argument of type Penrectangle - the argument of type RectradiusX - the argument of type doubleradiusY - the argument of type doublejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawText(FormattedText formattedText, Point origin) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidEnumArgumentException, Win32Exception, SecurityException, IOException, NotSupportedException
formattedText - the argument of type FormattedTextorigin - the argument of type Pointjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidCastException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itWin32Exception - if the .NET member raises itSecurityException - if the .NET member raises itIOException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void DrawVideo(MediaPlayer player, Rect rectangle) throws java.lang.Throwable
player - the argument of type MediaPlayerrectangle - the argument of type Rectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void DrawVideo(MediaPlayer player, Rect rectangle, AnimationClock rectangleAnimations) throws java.lang.Throwable
player - the argument of type MediaPlayerrectangle - the argument of type RectrectangleAnimations - the argument of type AnimationClockjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class DispatcherObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class DispatcherObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class DispatcherObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class DispatcherObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class DispatcherObjectpublic void Pop()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PushClip(Geometry clipGeometry) throws java.lang.Throwable
clipGeometry - the argument of type Geometryjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PushEffect(BitmapEffect effect, BitmapEffectInput effectInput) throws java.lang.Throwable
effect - the argument of type BitmapEffecteffectInput - the argument of type BitmapEffectInputjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PushGuidelineSet(GuidelineSet guidelines) throws java.lang.Throwable
guidelines - the argument of type GuidelineSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PushOpacity(double opacity)
throws java.lang.Throwable
opacity - the argument of type doublejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PushOpacity(double opacity,
AnimationClock opacityAnimations)
throws java.lang.Throwable
opacity - the argument of type doubleopacityAnimations - the argument of type AnimationClockjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PushOpacityMask(Brush opacityMask) throws java.lang.Throwable
opacityMask - the argument of type Brushjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void PushTransform(Transform transform) throws java.lang.Throwable
transform - the argument of type Transformjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class DispatcherObjectinstance - the new underlying object