>
>
>> What is returned is an array.   But generally... pixel [8][9]... i.e. row
> 8, column 9 would be at array position  data[9+imagewidth*8] as an example.
>
> pixel pitch should be the pixel byte alignment in memory.   Someone can
> correct me if I am wrong.
>

No, the "ret_pitch" is a width of the memory buffer ("ret_ptr")  in bytes.
pixel[8][9]  =>  (u8*)ptr + 8 * pitch + 9 * size_of_pixel;


>
>
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>


-- 
Best Regards
Nikita Egorov
[email protected]
[email protected]
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to