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
Contributor
arjuna
Posts: 48
Registered: ‎04-07-2011
My Device: 9550
My Carrier: Desktop

Erasing an Image

 

Hi all,

 

 

                I am trying to erase an image but i couldn't . Now I have to erase an image , Can anyone knows how to Erase an Image . Please give me suggestions.

 

 

Thanks & Regards,

Nagarjuna Metla.

arjuna
Please use plain text.
New Contributor
kumarawijeet
Posts: 6
Registered: ‎10-24-2012
My Device: bold 9900
My Carrier: BSNL

Re: Erasing an Image

Scroll to that image and just press the delete button placed on the right hand side and if confirmation is set on then u will be asked a confirmation message after which your photo will get deleted

Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

Re: Erasing an Image

Are you trying to erase an image programmatically or manually?

Please use plain text.
Contributor
arjuna
Posts: 48
Registered: ‎04-07-2011
My Device: 9550
My Carrier: Desktop

Re: Erasing an Image

Hi ,

 

 

         Programmitically.

 

Thanks for your response

arjuna
Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

Re: Erasing an Image

You are going to need to give us some more detailed information about what you are trying to do exactly so that we can assist you.

 

Is it an image in your app or on the file browser? How are you doing it at the moment? Did you get any errors when you try to "erase" the image, etc.

Please use plain text.
Contributor
arjuna
Posts: 48
Registered: ‎04-07-2011
My Device: 9550
My Carrier: Desktop

Re: Erasing an Image

 

I am trying to erase an image which exists in my application and when we touch on the image then touched part get erased but I couldn't do that one.

 

I drew a transparent rectangle on the image but image was not erased how to erase that touched part of the Image.

 

 

Thanks & Regards ,

Nagarjuna Metla.

 

arjuna
Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

Re: Erasing an Image

If the image is added to your application/screen as a field, you could override the touch event to delete the field that you're selecting.

 

Have a look at the following link:

 

http://docs.blackberry.com/en/developers/deliverables/17971/Responding_to_touch_screen_events_647768...

Please use plain text.
Contributor
arjuna
Posts: 48
Registered: ‎04-07-2011
My Device: 9550
My Carrier: Desktop

Re: Erasing an Image

I just want to erase touched area only not the entire bitmap.

arjuna
Please use plain text.
Developer
peter_strange
Posts: 19,599
Registered: ‎07-14-2008
My Device: Not Specified

Re: Erasing an Image

I think you could have explained this problem better at the start.

 

Just to confirm, you have a background behind you image and you wish to make the part of the image that is touched transparent, so that the background can be seen through it?

 

Assuming this is a correct statement of your problem, there are in fact a number of steps in this processing that you could be having problems with:

 

a) detect touch event

b) determining where on your visible image this touch event actually is

c) determining where on the actual image Bitmap, this is relates too

d) converting this portion of the actual Bitmap to be transparent

e) Displaying the changed Bitmap when you have made it transparent

f) Determining how much of the Bitmap to make transparent. 

 

So which step are you having problems with?

 

Please don't say all of it.  You can't be having problems with the later steps if you have not completed the earlier steps. 

Please use plain text.