Interface CompanionImageBufferPosition

Size and position information for an ImageBuffer

interface CompanionImageBufferPosition {
    drawScale?: number;
    height: number;
    width: number;
    x: number;
    y: number;
}

Properties

drawScale?: number

The scale to draw this buffer at. This can be useful to ensure that drawn buffers are sharp, as they can be drawn at a higher resolution than the buffer itself. Note: This is a multiplier, so 1 is the default size, 0.5 is half size, 2 is double size, etc. Warning: Be careful to not use buffers too large, as that can cause performance issues.

height: number
width: number
x: number
y: number