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
New Developer
eDip
Posts: 11
Registered: ‎08-07-2008
My Device: Not Specified

Raster Operation

Hi,

 

I want to know how the raster operation in Graphics class works. I have read the documentation but able to get very little from it.

 

How 'rop' and 'tilerop' function works? What is meaning and purpose of ROP_SRC_COPY?

 

I am using Blackberry JDE 4.1. 

New Developer
eDip
Posts: 11
Registered: ‎08-07-2008
My Device: Not Specified

Re: Raster Operation

Hi Mark,

 

Do you have any insights regarding this?

 

Regards,

eDip 

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Raster Operation

The only documentation for these methods is within the JavaDocs.  If you can provide a description of what you are trying to accomplish I may be able to offer some suggestions.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
eDip
Posts: 11
Registered: ‎08-07-2008
My Device: Not Specified

Re: Raster Operation

Hi Mark,

 

I want to copy area from screen to a bitmap and pass this bitmap to bitmap field of another screen. I am trying to use 'rop' function with ROP_SRC_COPY which says "Raster operation constant for normal bitmap copy.".

 

Also while using 'rop(int rop, int x, int y, int width, int height, Bitmap source, int left, int top) ' method on graphics object, which is destination region and which is source bitmap?

 

Regards,

eDip 

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Raster Operation

You can use the Display.screenshot method to capture all or part of the current screen, which is then stored in a Bitmap object.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
eDip
Posts: 11
Registered: ‎08-07-2008
My Device: Not Specified

Re: Raster Operation

Thanks Mark!

 

I have not logged in for few days so not been able to reply.

 

Display.screenShot method is available from version 4.3. How to make this possible in earlier versions?

 

Regards,

eDip 

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Raster Operation

This feature is not supported in earlier versions.  There isn't an alternative method in earlier versions of the BlackBerry API set.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
eDip
Posts: 11
Registered: ‎08-07-2008
My Device: Not Specified

Re: Raster Operation

Thanks Mark!

 

Regards,

Dipak