Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 88
Registered: ‎04-09-2010
My Device: 9530
My Carrier: Software Developer
Accepted Solution

Image over a Image

Hi i want to put a Big image over a small Image , condition is the image which is on top has some specific rectangular area where the second image will be displayed. I want the the small Image to be displayed inside the big image not over the big image. i don't no will it possible or not , if it is possible can any one provide me guidance or provide me a sample code or link thanks alot
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Image over a Image

[ Edited ]

Extend a BitmapField to allow you to specify two images,  Supply the larger one to the RIM BitmapField.  Override paint, and first call super.paint(), which will paint the larger image.  Then use drawBitmap to put the smaller Bitmap where you want it to be.

 

Good luck.

Regular Contributor
Posts: 88
Registered: ‎04-09-2010
My Device: 9530
My Carrier: Software Developer

Re: Image over a Image

Thanks peter, can i have a sample code please,or any link..
Highlighted
Regular Contributor
Posts: 88
Registered: ‎04-09-2010
My Device: 9530
My Carrier: Software Developer

Re: Image over a Image

Thanks peter i followed your step and it worked for me