Microsoft Windows 10 Strokes API

The Strokes API from Microsoft Windows 10 — 2 operation(s) for strokes.

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/uwp/api/
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/uwp/get-started/
📖
Documentation
https://learn.microsoft.com/en-us/windows/win32/apiindex/windows-api-list
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/win32/desktop-programming
📖
Documentation
https://learn.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/adaptive-interactive-toasts
📖
Documentation
https://learn.microsoft.com/en-us/windows/ai/windows-ml/api-reference
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/ai/windows-ml/get-started
📖
Documentation
https://learn.microsoft.com/en-us/uwp/api/windows.storage
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/uwp/files/
📖
Documentation
https://learn.microsoft.com/en-us/cortana/voice-commands/vcd
📖
Documentation
https://learn.microsoft.com/en-us/uwp/api/windows.ui.input.inking
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/uwp/design/input/pen-and-stylus-interactions
📖
Documentation
https://learn.microsoft.com/en-us/windows/uwp/composition/visual-layer
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/uwp/composition/using-the-visual-layer-with-xaml
📖
Documentation
https://learn.microsoft.com/en-us/windows/win32/directx
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/win32/getting-started-with-directx-graphics
📖
Documentation
https://learn.microsoft.com/en-us/windows/apps/develop/audio-video-camera
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/win32/medfound/audio-video-capture-in-media-foundation
📖
Documentation
https://learn.microsoft.com/en-us/windows/uwp/networking/which-networking-technology
📖
Documentation
https://learn.microsoft.com/en-us/windows/uwp/devices-sensors/bluetooth-dev-faq
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/win32/bluetooth/bluetooth-programming-with-windows-sockets
📖
Documentation
https://learn.microsoft.com/en-us/uwp/api/windows.devices.geolocation
📖
Documentation
https://learn.microsoft.com/en-us/windows/win32/sensorsapi/introduction-to-the-sensor-and-location-platform-in-windows
📖
Documentation
https://learn.microsoft.com/en-us/windows/apps/develop/security/windows-hello
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/apps/develop/security/windows-hello-auth-service
📖
Documentation
https://learn.microsoft.com/en-us/windows/apps/winui/winui2/
📖
GettingStarted
https://learn.microsoft.com/en-us/windows/apps/winui/winui2/getting-started
📖
Documentation
https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/applifecycle/background-tasks

Specifications

Other Resources

🔗
Samples
https://github.com/Microsoft/Windows-universal-samples
🔗
Reference
https://learn.microsoft.com/en-us/uwp/api/
🔗
SDKs
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/
🔗
Reference
https://learn.microsoft.com/en-us/windows/win32/api/
🔗
Samples
https://github.com/microsoft/Windows-classic-samples
🔗
Samples
https://github.com/WindowsNotifications/quickstart-sending-local-toast-win10
🔗
Reference
https://learn.microsoft.com/en-us/uwp/api/windows.ui.notifications
🔗
Tutorials
https://learn.microsoft.com/en-us/windows/ai/windows-ml/tutorials
🔗
Samples
https://github.com/Microsoft/Windows-Machine-Learning
🔗
Best Practices
https://learn.microsoft.com/en-us/windows/uwp/files/best-practices-for-writing-to-files
🔗
Guidelines
https://learn.microsoft.com/en-us/cortana/voice-commands/voicecommand-design-guidelines
🔗
Samples
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/SimpleInk
🔗
Reference
https://learn.microsoft.com/en-us/uwp/api/windows.ui.composition
🔗
Samples
https://github.com/microsoft/Windows.UI.Composition-Win32-Samples
🔗
Samples
https://github.com/microsoft/DirectX-Graphics-Samples
🔗
Reference
https://microsoft.github.io/DirectX-Specs/
🔗
Reference
https://learn.microsoft.com/en-us/uwp/api/windows.media.capture
🔗
Reference
https://learn.microsoft.com/en-us/uwp/api/windows.networking.sockets
🔗
Samples
https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/websocket/
🔗
Reference
https://learn.microsoft.com/en-us/windows/win32/api/_bluetooth/
🔗
Reference
https://learn.microsoft.com/en-us/windows/win32/locationapi/windows-location-api-portal
🔗
Samples
https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/geolocation/
🔗
Reference
https://learn.microsoft.com/en-us/uwp/api/windows.devices.sensors
🔗
Reference
https://learn.microsoft.com/en-us/windows/security/identity-protection/hello-for-business/webauthn-apis
🔗
Reference
https://learn.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.controls
🔗
Samples
https://github.com/microsoft/microsoft-ui-xaml
🔗
Samples
https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/backgroundtask/

OpenAPI Specification

microsoft-windows-10-strokes-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Microsoft Windows 10 Windows Background Tasks Accelerometer Strokes API
  description: API for running code in the background when an application is suspended or not running. Based on the Windows.ApplicationModel.Background namespace, it supports time-triggered, system-triggered, and maintenance-triggered background tasks. Key classes include BackgroundTaskBuilder, BackgroundTaskRegistration, SystemTrigger, TimeTrigger, and BackgroundTaskCompletedEventArgs.
  version: 1.0.0
  contact:
    name: Microsoft Developer Support
    url: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/applifecycle/background-tasks
  license:
    name: Microsoft Software License
    url: https://www.microsoft.com/en-us/legal/terms-of-use
servers:
- url: https://api.windows.com
  description: Windows Platform API
tags:
- name: Strokes
paths:
  /ink/strokes:
    get:
      operationId: listInkStrokes
      summary: Microsoft Windows 10 List ink strokes
      description: Retrieves the list of ink strokes from an InkStrokeContainer. Each InkStroke contains point data, drawing attributes (color, size, pen tip shape), and bounding rectangle information.
      tags:
      - Strokes
      responses:
        '200':
          description: Successful retrieval of ink strokes
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InkStroke'
    post:
      operationId: addInkStroke
      summary: Microsoft Windows 10 Add an ink stroke
      description: Adds a new ink stroke to the InkStrokeContainer using InkStrokeBuilder. The stroke is created from a series of ink points with position, pressure, tilt, and timestamp data, combined with InkDrawingAttributes for visual styling.
      tags:
      - Strokes
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInkStrokeRequest'
      responses:
        '201':
          description: Ink stroke created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InkStroke'
        '400':
          description: Invalid stroke data
  /ink/strokes/{strokeId}:
    get:
      operationId: getInkStroke
      summary: Microsoft Windows 10 Get ink stroke details
      description: Retrieves detailed information about a specific ink stroke including its points, drawing attributes, and bounding rectangle.
      tags:
      - Strokes
      parameters:
      - name: strokeId
        in: path
        required: true
        description: Unique stroke identifier
        schema:
          type: string
      responses:
        '200':
          description: Successful retrieval of ink stroke
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InkStrokeDetail'
        '404':
          description: Stroke not found
    delete:
      operationId: deleteInkStroke
      summary: Microsoft Windows 10 Delete an ink stroke
      description: Deletes a specific ink stroke from the container using InkStroke.Selected and InkStrokeContainer.DeleteSelected methods.
      tags:
      - Strokes
      parameters:
      - name: strokeId
        in: path
        required: true
        description: Unique stroke identifier
        schema:
          type: string
      responses:
        '204':
          description: Stroke deleted successfully
        '404':
          description: Stroke not found
components:
  schemas:
    InkPoint:
      type: object
      description: A point in an ink stroke (InkPoint class)
      properties:
        x:
          type: number
          format: float
          description: X coordinate
        y:
          type: number
          format: float
          description: Y coordinate
        pressure:
          type: number
          format: float
          description: Pressure value (0.0 to 1.0)
        tiltX:
          type: number
          format: float
          description: Tilt along X axis in degrees
        tiltY:
          type: number
          format: float
          description: Tilt along Y axis in degrees
        timestamp:
          type: integer
          format: int64
          description: Timestamp in microseconds
      required:
      - x
      - y
      - pressure
    InkStrokeDetail:
      type: object
      description: Detailed ink stroke information
      properties:
        id:
          type: string
        points:
          type: array
          items:
            $ref: '#/components/schemas/InkPoint'
        boundingRect:
          $ref: '#/components/schemas/BoundingRect'
        drawingAttributes:
          $ref: '#/components/schemas/InkDrawingAttributes'
        strokeDuration:
          type: string
          description: Duration of the stroke
    InkDrawingAttributes:
      type: object
      description: Visual attributes for ink rendering (InkDrawingAttributes class)
      properties:
        color:
          type: string
          description: Stroke color in ARGB hex format
          example: '#FF000000'
        size:
          type: object
          properties:
            width:
              type: number
              format: float
            height:
              type: number
              format: float
          description: Pen tip size
        penTip:
          type: string
          enum:
          - Circle
          - Rectangle
          description: Pen tip shape
        drawAsHighlighter:
          type: boolean
          description: Whether to render as a highlighter
        fitToCurve:
          type: boolean
          description: Whether to use Bezier curve fitting
        ignorePressure:
          type: boolean
          description: Whether to ignore pressure data
        ignoreTilt:
          type: boolean
          description: Whether to ignore tilt data
    BoundingRect:
      type: object
      properties:
        x:
          type: number
          format: float
        y:
          type: number
          format: float
        width:
          type: number
          format: float
        height:
          type: number
          format: float
    CreateInkStrokeRequest:
      type: object
      properties:
        points:
          type: array
          items:
            $ref: '#/components/schemas/InkPoint'
          description: Ordered list of ink points
        drawingAttributes:
          $ref: '#/components/schemas/InkDrawingAttributes'
      required:
      - points
    InkStroke:
      type: object
      description: An ink stroke (InkStroke class)
      properties:
        id:
          type: string
          description: Unique stroke identifier
        pointCount:
          type: integer
          description: Number of ink points in the stroke
        boundingRect:
          $ref: '#/components/schemas/BoundingRect'
        drawingAttributes:
          $ref: '#/components/schemas/InkDrawingAttributes'
      required:
      - id
externalDocs:
  description: Background Tasks Documentation
  url: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/applifecycle/background-tasks