On 23 January 2013 14:56, Denis Kudriashov <
dionisiydk@gmail.com> wrote:
> 2013/1/23 Igor Stasenko <
siguctua@gmail.com>
>>
>> On 23 January 2013 12:58, Esteban Lorenzano <
estebanlm@gmail.com> wrote:
>> > Hi Fernando,
>> >
>> > I don't want a Form... quitte the opposite! :)
>> > What I want is to have something equivalent to athens to what now is
>> > covered
>> > in morphic with ImageReadWriter.
>> >
>> > Or, better explained, I want an AthensImageReadWriter who answers me a
>> > surface (or something that I can draw with an athens canvas) with the
>> > image
>> > from a file :)
>> >
>> You know that you can convert between forms and athens surface?
>> Forms is actually not that bad, they simply contain bits.
>> The bit format information is a bit obscure (comparing to OpenGL, for
>> instance),
>> but its enough.
>> So, i suggest you to use form and ImageReadWriter.
>>
>
> But reading image from file without smalltalk operations can be much more
> efficient. If your application works extensively with external images It is
> important.
> That's why I write question at user group about how to get Form efficiently
> from external memory which filled by FFI call. Unfortunately no answers.
> Now I think about optimisation of PNGImageReadWriter by NativeBoost.
>
Well, Cairo uses libpng as dependency, and provides easy interface functions