Top

pyagg.bboxhelper module

Contains several helper functions for manipulating bounding boxes. Mostly used internally.

Functions

def center(

bbox, center)

def conform_aspect(

bbox, targetwidth, targetheight, fit=True)

def offset(

bbox, xoffset, yoffset)

def resize_dimensions(

bbox, newwidth, newheight)

def resize_ratio(

bbox, xratio, yratio)