A format.
|
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
a new object with type S, a subtype of T
|
|
None
|
add(self,
name)
Add this instance to a list of "named" formats. |
|
|
[x, y]
|
fromUV(self,
u,
v)
Transform a UV coordinate in the range 0-1 into the format's XY
range. |
|
|
int
|
height(self)
Return the height of image file in pixels. |
|
|
string
|
name(self)
Returns the user-visible name of the format. |
|
|
float
|
pixelAspect(self)
Returns the pixel aspect ratio (pixel width divided by pixel height)
for this format. |
|
|
int
|
r(self)
Return the right edge of image file in pixels. |
|
|
Format
|
scaled(sx,
sy,
tx,
ty)
Scale and translate this format by sx, sy, tx and ty. |
|
|
None
|
setHeight(self,
newHeight)
Set the height of image file in pixels. |
|
|
None
|
setName(self,
name)
Set name of this format. |
|
|
None
|
setPixelAspect(self,
aspectRatio)
Set a new pixel aspect ratio for this format. |
|
|
None
|
setR(self,
newR)
Set the right edge of image file in pixels. |
|
|
None
|
setT(self,
newT)
Set the top edge of image file in pixels. |
|
|
None
|
setWidth(self,
newWidth)
Set the width of image file in pixels.newWidth is the new width for
the image; it should be a positive integer. |
|
|
None
|
setX(self,
newX)
Set the left edge of image file in pixels. |
|
|
None
|
setY(self,
newY)
Set the bottom edge of image file in pixels. |
|
|
int
|
t(self)
Return the top edge of image file in pixels. |
|
|
(u, v)
|
toUV(self,
x,
y)
Back-transform an XY coordinate in the format's space into UV space. |
|
|
int
|
width(self)
Return the width of image file in pixels. |
|
|
int
|
x(self)
Return the left edge of image file in pixels. |
|
|
int
|
y(self)
Return the bottom edge of image file in pixels. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|