thanks Christopher. The haze cleared a bit. The fog now looks like mist...:)

On Wed, Sep 10, 2014 at 9:49 PM, Christopher Night <cosmologi...@gmail.com>
wrote:

> No, in pygame, both screenshots and images loaded from files are simply
> Surface objects. In this case, this fact is documented in the description
> for pygame.image.load. Hopefully that makes it clear that it returns a
> Surface:
> http://www.pygame.org/docs/ref/image.html#pygame.image.load
>
> Good luck!
>
>
> On Wed, Sep 10, 2014 at 11:54 AM, diliup gabadamudalige <dili...@gmail.com
> > wrote:
>
>> I am asking how to save a SURFACE and NOT an image that was loaded.
>> Aren't those two different things?
>>
>> Pardon my ignorance but some of the Pygame documentation is not very
>> clear to me. Also none of the suggested methods delivered results that were
>> fast enough to be used in a practical situation.
>> The fastest so far is the normal save to disk and reload as jpeg and then
>> the rest.
>>
>> Also PIL does not compile well with py2exe.
>> Not all packages and modules do.
>>
>> Hence the question.
>> So looks like my best option is the save to disk and load which is also
>> the fastest.
>>
>> Thanks to everyone  all for the support which is invaluable.
>>
>>
>>
>> --
>>
>>
>> On Wed, Sep 10, 2014 at 9:11 PM, Christopher Night <
>> cosmologi...@gmail.com> wrote:
>>
>>> For reference, here's the discussion from the last time Diliup asked
>>> this same question, a month ago:
>>>
>>> https://groups.google.com/forum/#!topic/pygame-mirror-on-google-groups/WIuIlmXvqow
>>>
>>>
>>> On Tue, Sep 9, 2014 at 7:57 AM, diliup gabadamudalige <dili...@gmail.com
>>> > wrote:
>>>
>>>> How can a Pygame surface be converted to an image file say a jpeg or a
>>>> png WITHOUT writing the file to disk? Say after a screen grab?
>>>>
>>>
>>>
>>
>>
>> --
>> Diliup Gabadamudalige
>>
>> http://www.diliupg.com
>> http://soft.diliupg.com/
>>
>>
>> **********************************************************************************************
>> This e-mail is confidential. It may also be legally privileged. If you
>> are not the intended recipient or have received it in error, please delete
>> it and all copies from your system and notify the sender immediately by
>> return e-mail. Any unauthorized reading, reproducing, printing or further
>> dissemination of this e-mail or its contents is strictly prohibited and may
>> be unlawful. Internet communications cannot be guaranteed to be timely,
>> secure, error or virus-free. The sender does not accept liability for any
>> errors or omissions.
>>
>> **********************************************************************************************
>>
>>
>


-- 
Diliup Gabadamudalige

http://www.diliupg.com
http://soft.diliupg.com/

**********************************************************************************************
This e-mail is confidential. It may also be legally privileged. If you are
not the intended recipient or have received it in error, please delete it
and all copies from your system and notify the sender immediately by return
e-mail. Any unauthorized reading, reproducing, printing or further
dissemination of this e-mail or its contents is strictly prohibited and may
be unlawful. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
**********************************************************************************************

Reply via email to