Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
The pixel format passed to this API is not compatible with the pixel format of the [surface].
Placeholders
-
surface
-
The render target or bitmap specified.
Possible Causes
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.
Possible Fixes
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.