What does HRESULT 0x88990021 (D2DERR_BITMAP_CANNOT_DRAW) mean?

 
Previous Next
D2DERR_CYCLIC_GRAPH D2DERR_OUTSTANDING_BITMAP_REFERENCES

D2DERR_BITMAP_CANNOT_DRAW

D2DERR_BITMAP_CANNOT_DRAW means that code attempted to draw with a bitmap that was created with D2D1_BITMAP_OPTIONS_CANNOT_DRAW. That option deliberately marks the bitmap as unavailable as a drawing source.

What to check

  • Inspect the bitmap options used at creation time.
  • Create a separate drawable bitmap when the image must later be passed to drawing operations.
  • Keep target-only and source-drawable bitmap roles distinct in the renderer.

The bitmap may still be valid for its intended role; the error only says that drawing from it is prohibited by its options.

Microsoft: Direct2D error codes


Looking for a different code? Search another status or error code.