sk_bitmap

Types

SkBitmap = ref object
  native*: ptr sk_bitmap_t
  Source Edit

Procs

proc newSkBitmap(): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit
proc dispose(this: SkBitmap) {...}{.raises: [], tags: [].}
  Source Edit
proc erase(this: SkBitmap; color: SkColor) {...}{.raises: [], tags: [].}
  Source Edit
proc reset(this: SkBitmap) {...}{.raises: [], tags: [].}
  Source Edit
proc info(this: SkBitmap): SkImageInfo {...}{.raises: [], tags: [].}
  Source Edit
proc colorType(this: SkBitmap): SkColorType {...}{.raises: [], tags: [].}
  Source Edit
proc width(this: SkBitmap): int {...}{.raises: [], tags: [].}
  Source Edit
proc height(this: SkBitmap): int {...}{.raises: [], tags: [].}
  Source Edit
proc pixels(this: SkBitmap; length: var int): pointer {...}{.raises: [], tags: [].}
  Source Edit
proc pixels=(this: SkBitmap; pixels: pointer) {...}{.raises: [], tags: [].}
  Source Edit
proc newSkBitmap(info: SkImageInfo): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit
proc newSkBitmap(width: int; height: int; colorType: SkColorType;
                alphaType: SkAlphaType): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit
proc newSkBitmap(width: int; height: int; isOpaque: bool = false): SkBitmap {...}{.raises: [],
    tags: [].}
  Source Edit
proc decodeBitmap(codec: SkCodec; info: SkImageInfo): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit
proc decodeBitmap(codec: SkCodec): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit
proc decodeBitmap(path: string): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit
proc canCopyTo(this: SkBitmap; colorType: SkColorType): bool {...}{.raises: [], tags: [].}
  Source Edit
proc peekPixels(this: SkBitmap; pixmap: SkPixmap): bool {...}{.raises: [], tags: [].}
  Source Edit
proc peekPixels(this: SkBitmap): SkPixmap {...}{.raises: [], tags: [].}
  Source Edit
proc swap(this: SkBitmap; other: SkBitmap) {...}{.raises: [], tags: [].}
  Source Edit
proc `[]`(this: SkBitmap; x, y: int): SkColor {...}{.raises: [], tags: [].}
  Source Edit
proc `[]=`(this: SkBitmap; x: int; y: int; color: SkColor) {...}{.raises: [], tags: [].}
  Source Edit
proc copyTo(this: SkBitmap; destination: SkBitmap; colorType: SkColorType): bool {...}{.
    raises: [], tags: [].}
  Source Edit
proc copy(this: SkBitmap; colorType: SkColorType): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit
proc bitmapFrom(img: SkImage): SkBitmap {...}{.raises: [], tags: [].}
  Source Edit

Templates

template isReadyToDraw(this: SkBitmap): bool
  Source Edit
template getPixel(this: SkBitmap; x, y: int): SkColor
  Source Edit
template setPixel(this: SkBitmap; x: int; y: int; color: SkColor)
  Source Edit