[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Comparing the image on two Surface objects.



Do you want to know If they are pointing to the same surface, or duplicate memory?


On Thu, Nov 29, 2012 at 4:10 PM, Al Sweigart <al@xxxxxxxxxxxxxxxxxxxx> wrote:
Is there any way I can check if the images on two pygame.Surface objects are identical? Or will I have to write a function that gets PixelArray objects from these surfaces and then compares them pixel-by-pixel?

-Al



--
Jake