Options
All
  • Public
  • Public/Protected
  • All
Menu

Class image

The dagpi image object

param raw

The buffer containing image data

param type

The format of the image png or gif

param process_time

the time taken to process the image

Hierarchy

  • image

Index

Constructors

Properties

Methods

Constructors

  • new image(raw: Buffer, type: format, time: number): image

Properties

format: format

The format of the image png or gif

image: Buffer

The buffer containing image data

process_time: number

the time taken to process the image

Methods

  • size(): number
  • get the size of the buffer

    Returns number

    output size

Generated using TypeDoc