Do you mean if x is 200 and y is 300 then you want a color like 0x200300?
Thank you for reply
what i want is that
actually i have some items in database which have their own propertieses such as length,width,height
so I want to show them on the screen with filled areas as boxes or rectangles at particular x,y position on the screen
please help me