title | ms.assetid | description | keywords | topic_type | api_name | api_type | ms.topic | ms.date | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
D1125 DXGI Format Mismatch |
b94f2358-3f45-4ff3-adf8-954b785d5722 |
D2D1\_ALPHA\_MODE\_UNKNOWN is not allowed as a parameter to this API. |
|
|
|
|
reference |
05/31/2018 |
The pixel format passed to this API is not compatible with the pixel format of the [surface].
-
surface
-
The render target or bitmap specified.
Operations such as ID2D1RenderTarget::CreateBitmapFromWicBitmap or ID2D1RenderTarget::CreateDxgiSurfaceRendertarget require both a surface and a specified surface format. Direct2D verifies that the specified surface type is compatible with the surface. If it is not compatible, Direct2D will output this message.
Ensure that the specified DXGI_FORMAT matches, or is compatible with, the type of the underlying surface. For Direct3D surface resources created by the application, use the same DXGI_FORMAT used to create the resource. Please see Supported Pixel Formats and Alpha Modes for additional guidance.