Class D2D1Error
D2D1 error codes.
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public static class D2D1Error
Fields
| Edit this page View SourceBadNumber
Invalid number.
Declaration
public const int BadNumber = -2003238895
Field Value
Type | Description |
---|---|
int |
BitmapBoundAsTarget
Cannot draw with a bitmap that is currently bound as the target bitmap.
Declaration
public const int BitmapBoundAsTarget = -2003238875
Field Value
Type | Description |
---|---|
int |
BitmapCannotDraw
Cannot draw with a bitmap that has the D2D1_BITMAP_OPTIONS_CANNOT_DRAW option.
Declaration
public const int BitmapCannotDraw = -2003238879
Field Value
Type | Description |
---|---|
int |
CyclicGraph
There was a cycle in the graph.
Declaration
public const int CyclicGraph = -2003238880
Field Value
Type | Description |
---|---|
int |
DisplayFormatNotSupported
The display format Direct2D needs to render is not supported by the hardware device.
Declaration
public const int DisplayFormatNotSupported = -2003238903
Field Value
Type | Description |
---|---|
int |
DisplayStateInvalid
A valid display state could not be determined.
Declaration
public const int DisplayStateInvalid = -2003238906
Field Value
Type | Description |
---|---|
int |
EffectIsNotRegistered
The CLSID provided to Unregister did not correspond to a registered effect.
Declaration
public const int EffectIsNotRegistered = -2003238872
Field Value
Type | Description |
---|---|
int |
ExceedsMaxBitmapSize
The requested size is larger than the guaranteed supported texture size at the Direct3D device's current feature level.
Declaration
public const int ExceedsMaxBitmapSize = -2003238883
Field Value
Type | Description |
---|---|
int |
IncompatibleBrushTypes
The brush types are incompatible for the call.
Declaration
public const int IncompatibleBrushTypes = -2003238888
Field Value
Type | Description |
---|---|
int |
InsufficientDeviceCapabilities
D3D Device does not have sufficient capabilities to perform the requested action.
Declaration
public const int InsufficientDeviceCapabilities = -2003238874
Field Value
Type | Description |
---|---|
int |
IntermediateTooLarge
The graph could not be rendered with the context's current tiling settings.
Declaration
public const int IntermediateTooLarge = -2003238873
Field Value
Type | Description |
---|---|
int |
InternalError
An internal error (Direct2D bug) occurred. On checked builds, we would assert. The application should close this instance of Direct2D and should consider restarting its process.
Declaration
public const int InternalError = -2003238904
Field Value
Type | Description |
---|---|
int |
InvalidCall
A call to this method is invalid.
Declaration
public const int InvalidCall = -2003238902
Field Value
Type | Description |
---|---|
int |
InvalidGraphConfiguration
There was a configuration error in the graph.
Declaration
public const int InvalidGraphConfiguration = -2003238882
Field Value
Type | Description |
---|---|
int |
InvalidInternalGraphConfiguration
There was a internal configuration error in the graph.
Declaration
public const int InvalidInternalGraphConfiguration = -2003238881
Field Value
Type | Description |
---|---|
int |
InvalidProperty
The specified property does not exist.
Declaration
public const int InvalidProperty = -2003238871
Field Value
Type | Description |
---|---|
int |
InvalidTarget
Cannot set the image as a target because it is either an effect or is a bitmap that does not have the D2D1_BITMAP_OPTIONS_TARGET flag set.
Declaration
public const int InvalidTarget = -2003238876
Field Value
Type | Description |
---|---|
int |
LayerAlreadyInUse
A layer resource can only be in use once at any point in time.
Declaration
public const int LayerAlreadyInUse = -2003238893
Field Value
Type | Description |
---|---|
int |
MaxTextureSizeExceeded
Requested DirectX surface size exceeded maximum texture size.
Declaration
public const int MaxTextureSizeExceeded = -2003238897
Field Value
Type | Description |
---|---|
int |
NoHardwareDevice
No hardware rendering device is available for this operation.
Declaration
public const int NoHardwareDevice = -2003238901
Field Value
Type | Description |
---|---|
int |
NoSubproperties
The specified sub-property does not exist.
Declaration
public const int NoSubproperties = -2003238870
Field Value
Type | Description |
---|---|
int |
NotInitialized
The object has not yet been initialized.
Declaration
public const int NotInitialized = -2003238910
Field Value
Type | Description |
---|---|
int |
OriginalTargetNotBound
The operation failed because the original target is not currently bound as a target.
Declaration
public const int OriginalTargetNotBound = -2003238877
Field Value
Type | Description |
---|---|
int |
OutstandingBitmapReferences
The operation cannot complete while there are outstanding references to the target bitmap.
Declaration
public const int OutstandingBitmapReferences = -2003238878
Field Value
Type | Description |
---|---|
int |
PopCallDidNotMatchPush
The pop call did not match the corresponding push call.
Declaration
public const int PopCallDidNotMatchPush = -2003238892
Field Value
Type | Description |
---|---|
int |
PrintFormatNotSupported
Error during print control creation. Indicates that none of the package target types (representing printer formats) are supported by Direct2D print control.
Declaration
public const int PrintFormatNotSupported = -2003238868
Field Value
Type | Description |
---|---|
int |
PrintJobClosed
AddPage or Close called after print job is already closed.
Declaration
public const int PrintJobClosed = -2003238869
Field Value
Type | Description |
---|---|
int |
PushPopUnbalanced
The push and pop calls were unbalanced.
Declaration
public const int PushPopUnbalanced = -2003238890
Field Value
Type | Description |
---|---|
int |
RecreateTarget
There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.
Declaration
public const int RecreateTarget = -2003238900
Field Value
Type | Description |
---|---|
int |
RenderTargetHasLayerOrClipRect
Attempt to copy from a render target while a layer or clip rectangle is applied.
Declaration
public const int RenderTargetHasLayerOrClipRect = -2003238889
Field Value
Type | Description |
---|---|
int |
ScannerFailed
The geometry scanner failed to process the data.
Declaration
public const int ScannerFailed = -2003238908
Field Value
Type | Description |
---|---|
int |
ScreenAccessDenied
Direct2D could not access the screen.
Declaration
public const int ScreenAccessDenied = -2003238907
Field Value
Type | Description |
---|---|
int |
ShaderCompileFailed
Shader compilation failed.
Declaration
public const int ShaderCompileFailed = -2003238898
Field Value
Type | Description |
---|---|
int |
TargetNotGdiCompatible
The render target is not compatible with GDI.
Declaration
public const int TargetNotGdiCompatible = -2003238886
Field Value
Type | Description |
---|---|
int |
TextEffectIsWrongType
A text client drawing effect object is of the wrong type.
Declaration
public const int TextEffectIsWrongType = -2003238885
Field Value
Type | Description |
---|---|
int |
TextRendererNotReleased
The application is holding a reference to the IDWriteTextRenderer interface after the corresponding DrawText or DrawTextLayout call has returned. The IDWriteTextRenderer instance will be invalid.
Declaration
public const int TextRendererNotReleased = -2003238884
Field Value
Type | Description |
---|---|
int |
TooManyShaderElements
Shader construction failed because it was too complex.
Declaration
public const int TooManyShaderElements = -2003238899
Field Value
Type | Description |
---|---|
int |
TooManyTransformInputs
An effect attempted to use a transform with too many inputs.
Declaration
public const int TooManyTransformInputs = -2003238867
Field Value
Type | Description |
---|---|
int |
UnsupportedOperation
The requested operation is not supported.
Declaration
public const int UnsupportedOperation = -2003238909
Field Value
Type | Description |
---|---|
int |
UnsupportedVersion
The requested Direct2D version is not supported.
Declaration
public const int UnsupportedVersion = -2003238896
Field Value
Type | Description |
---|---|
int |
Win32Error
An unknown win32 failure occurred.
Declaration
public const int Win32Error = -2003238887
Field Value
Type | Description |
---|---|
int |
WrongFactory
Objects used together must be created from the same factory instance.
Declaration
public const int WrongFactory = -2003238894
Field Value
Type | Description |
---|---|
int |
WrongResourceDomain
The resource was realized on the wrong render target.
Declaration
public const int WrongResourceDomain = -2003238891
Field Value
Type | Description |
---|---|
int |
WrongState
The object was not in the correct state to process the method.
Declaration
public const int WrongState = -2003238911
Field Value
Type | Description |
---|---|
int |
ZeroVector
The supplied vector is zero.
Declaration
public const int ZeroVector = -2003238905
Field Value
Type | Description |
---|---|
int |