On Tue, 20 Apr 2004 19:03:28 +0200 Navneet Dalal <[EMAIL PROTECTED]>
babbled:

> Hi
> 
> I am actually looking for a image input/output library (common interface for 
> all common image formats) with some other basic features like rescaling, etc.
> 
> Imlib2 seems quite ideal for it. It seems pretty fast. However, I have few 
> questions before I jump ahead.
> 
> 1. Does Imlib2 supports 16bpp png images?

good question. i've never run across one. internally imlib2 is all 8bit anyway
per channel so it'd have to reduce colordepth to 8bit on load.

> 2. The loader function "imlib_load_image" returns Imlib_Image structure.

aah it returns a HANDLE - not a structure. that structure is internal and not
intended for public consumption at all. its private and you don't get access.
there are functions to GEt access to image parameters like
imlib_image_get_width() imlib_image_get_data_for_reading(); etc.

> Though it doesnot sound ideal, but I would have to copy image data to my data 
> arrays. So I need to know the different members of Imlib_Image structure.
> However, I am unable to find any help on Imlib_Image structure. 

you just access and "copy" the parameters needed. notice that copying the pixel
data will be more overhead - extra memcopies and memory - you can just keep the
Imlib_Image handle in your structs and access the data as and when you need it.

> Can someone point to any documentation or the header file 
> (in Imlib2.h it is defined as 
> typedef void *Imlib_Image;
> so I am a bit lost).

that's the intention - you are not meant to find out! :)

> 3. Will Imlib2 compile on windows ? Just to know if the code is portable to 
> all platforms.

in theory it could using cygwin - but in practise people have had problems. it
can be done as there are windows cygwin packages for imlib2, so someone has
compiled it - you may need to hack makefiiles etc. though.

> thanks in advance
> navneet
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> enlightenment-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
熊耳 - 車君 (数田)                  [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to