Question

In Python for Symbian60 blit() is defined as:

blit(image [,target=(0,0), source=((0,0),image.size), mask=None, scale=0 ])

In the optional parameter source what is the significance of image.size?

Was it helpful?

Solution

My guess is that blit() will automatically use the result of image.size when you don't specify anything else (and thus blitting the whole image from (0,0) to (width,height)).

If you want only a smaller part of the image copied, you can use the source parameter to define a different rectangle to copy.

OTHER TIPS

Think that source=((0,0)) is the top left corner and image.size is the bottom right corner. You blit whatever is between those two points.

Similar for target, btw.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top