CreateSurfaceRequest

DesktopOperating SystemUWPWin32Windows

Properties

Name Type Description
width integer
height integer
pixelFormat string
alphaMode string
View JSON Schema on GitHub

JSON Schema

microsoft-windows-10-createsurfacerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateSurfaceRequest",
  "title": "CreateSurfaceRequest",
  "type": "object",
  "properties": {
    "width": {
      "type": "integer"
    },
    "height": {
      "type": "integer"
    },
    "pixelFormat": {
      "type": "string",
      "enum": [
        "B8G8R8A8UIntNormalized",
        "R8G8B8A8UIntNormalized",
        "R16G16B16A16Float"
      ],
      "default": "B8G8R8A8UIntNormalized"
    },
    "alphaMode": {
      "type": "string",
      "enum": [
        "Premultiplied",
        "Straight",
        "Ignore"
      ],
      "default": "Premultiplied"
    }
  },
  "required": [
    "width",
    "height"
  ]
}