On Fri, 23 Jan 2015 20:06:07 +0800 (CST) bray <bray_w...@163.com> said:

> Hi everyone:
> I have a picture data format as rgb565, i want to draw it by use evas.
> such as:
> evas = evas_object_image_filled_add(e);
> evas_object_image_data_update_add(evas, 0, 0, WIDTH, HEIGHT);
> evas_object_image_size_set(evas, WIDTH, HEIGHT);
>  
> evas_object_image_colorspace_set(evas,EVAS_COLORSPACE_RGB565_A5P);
> ↑ when i call this function, application exit.
> I don't know why!

it isn't actually supported as a format other than a now dead and removed 16bit
rendering engine when images were internally stored in this format.

so you can't use this format. you need to convert it to argb 32bit then set
that as the data.

> //evas_object_image_alpha_set(evas, 1);
> evas_object_image_data_set(evas, image_data_rgb565);
> evas_object_image_filled_set(evas, EINA_TRUE);
> evas_object_move(evas, 0, 0);
> evas_object_resize(evas, WIDTH, HEIGHT);
> evas_object_show(evas);
>  
> Does anyone konw how to draw a rgb565 data by using EFL or how to modify my
> source code? 
> EFL version: 1.9.0
>  
> Thanks,
> bray
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to