Module imageex

Types

PImageEx = ref TImageEx
TImageEx = object of TImage
  original*: PSurface
  originalPos: TPoint
  fAngle, fZoomX, fZoomY: float
  smooth*: cint

Procs

proc init(obj: PImageEx; smooth: cint)
proc free(obj: PImageEx)
proc newImageEx(filename: cstring; x: int = 0; 
                y: int = 0; 
                smooth: cint = 1): PImageEx

filename: image file to load from.

x, y: draw offset.

smooth: use smooth in transformations.

proc newImageEx(surface: PSurface; x: int = 0; 
                y: int = 0; 
                smooth: cint = 1): PImageEx

Methods

method updateRotZoom(obj: PImageEx)
method zoomX(obj: PImageEx): float {.inline.}
method zoomY(obj: PImageEx): float {.inline.}
method zoom=(obj: PImageEx; value: float) {.inline.}
method zoomX=(obj: PImageEx; value: float) {.inline.}
method zoomY=(obj: PImageEx; value: float) {.inline.}
method angle(obj: PImageEx): float {.inline.}
method angle=(obj: PImageEx; value: float) {.inline.}
method centerOffset(obj: PImageEx) {.inline.}
method centerOffsetX(obj: PImageEx) {.inline.}
method centerOffsetY(obj: PImageEx) {.inline.}
Generated: 2012-11-11 20:09:27 UTC