Paint screen

I use the constructor for screen drawing several bitmaps on a graph and then by loading these have a bitmapfield and finally add to the screen using add (BitmapField).

Now, I want to be able to change the bitmap image that I drew on the graph and repaint the screen.  I thought repaint the screen, but I don't know if it will work due to being of graph in memory and me do not update the chart wouldn't change anything.

How can I implement this to allow me to change the bitmaps on graphics and the screen draw all over again?

Is it possible to replace the function object of the screen or the chart itself, maybe BitmapField for I can get the desired results?

Thank you

OK, I'm confused. If you add a BitmpaField to your form, and then create a second Bitmapfield, how he added to the screen.

The correct sequence:

BitmapField m_bitmapFld = BitmapField (image) new

Add (m_bitmapFld)

.. now, the user clicks on something in order to change the bitmap:

m_bitmapFld.SetImage (b)

Invalidate()

... today, the screen is repainted with your new image.

Tags: BlackBerry Developers

Similar Questions

  • Paint screen on fieldchangelistener

    Hi all

    I'm having a little hold with a question. I would like to paint a new image based on the selection made by the user to the screen (selection is made by an ObjectChoiceField). I'm sure that this is possible, I don't know what code to use. Could someone please help on this issue.

    Thanks in advance.

    Configure your FieldChangeListener on your ObjectChoiceField.

    FieldChanged, call your code to paint your image on the screen and then invalidate. It all depends on how you paint this picture on the screen.

  • PaintBackgound of screen does not paint my bitmap image, but don't paint screen?

    There is something I don't understand with the paint and screen paintBackground.

    I am trying to add a background (Bitmap) image to my final class that extends screen and add a VerticalFieldManager on top of the background image.

    Screen.Paint painted my Bitmap, but hides the VerticalFieldManager:

    protected void paint(Graphics graphics) {
      graphics.clear();
      graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, bgBitmap, 0, 0);
      super.paint(graphics);
    }
    

    However, Screen.paintBackground does not paint my Bitmap or my VerticalFieldManager, and I have a blank white screen?

    protected void paintBackground(Graphics graphics) {
      graphics.clear();
      graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, bgBitmap, 0, 0);
      super.paintBackground(graphics);
    }
    

    The API of the playback screen, I thought paintBackground was the right way to achieve this?

    It's an old bug in BB - do not trust Screen.paintBackground (especially MainScreen.paintBackground!). PaintBackground of your Manager is a much better place for it (I know it is not documented, but if you read the Screen.paintBackground you will see it's substitute Field.paintBackground.).

  • How to display the vertical scroll bar in custom painted screen?


    a simple and intelligent search forum and I solved the problem.

    Screen does not scroll without an active field before and after the Manager of the vertical.

    I just addedd a NullField before the Manager and everything works fine!

    Thank you

  • How can I paint screen manually on another screen?


    I understand that there is no way to achieve my idea, is there?

  • Loading screen does not change the Image

    I have a problem with the field of gif. What I'm trying to do, is show a progress screen that the problem is its not like an animation. Its as if she makes just the first frame of the gif image.

    I have load call that changes the image that some real treatment goes.

    I thnk its happens because of the event put on another thread. but I can't understand that out can you please help me? Here is my code can you please help where I encounter an error.

    DataStore.answeringThread = new AnsweringThread();
    DataStore.answeringThread.start ();

    final LoaderScreen ls = new LoaderScreen();
    ls.setShowLoader (true);
    Status.Show ("Please wait...", 10);
    UiApplication.getUiApplication () .pushScreen (ls);

    /*---*/UiApplication.getUiApplication () .invokeLater (new Runnable()
    {
    public void run()
    {
    try {}
    DataStore.answeringThread.join ();
    } catch (System.Exception e)
    {}
    UiApplication.getUiApplication () .popScreen (UiApplication.getUiApplication () .getActiveScreen ());
    UiApplication.getUiApplication () .pushScreen (new Answering());
    }
    });/*--------*/

    I am able to see screeen of loading for the first time, only to change its image as time passes but it isn't happeing instead, it makes only first image. and then the new response screen appears.

    If I comment the code between two - and - image changes as appropriate.

    Your problem is that you use a blocking operation and the Blackberry is never really painted screen.

    There are 2 possible solutions:

    (1) the blocking operation thread. This means that spawn a real thread to use UIApplication.invokeLater () instead.

    (2) paint before calling your blocking with the force operation: Ui.getUiEngine () .repaint (); It means the battery display to repaint and your screen will be permanently shown.

  • Add OS 7.0 VGField under another problem of fields

    Hello!

    I have very bad problem in OS 7.0.

    My layouts from VGField under an other fields (e.g. buttons, labels). OS 6.0, torch, painted screen properly, like I need - VGField makes the scene under fields.

    But in OS 7.0, it is little matter in what order VGField add in Manager, he always makes VGField on top, and another field are not visible.

    Here are the pictures that are explain my problem more clear:

    1st picture, OS 6.0, torch, correct. VGField under buttonField and rectangle painted

    9900 photo device, OS 7.0, 2nd. The same source, but not all fields and graphics on VGField

    I solved the problem.

    CanvasComponent - Manager where I put fields except VGField, in OS 7.0 this Manager is always drawn on top.

  • creating suggest the field box

    Hi all

    I am developing a SuggestBox Field using the 4.5 API. I read a thread where Peter had a discussion about this. But there was not much discussion of the implementation on this matter and he could not help me a lot. Then try to start a new that in it would help get us a full reusable suggestbox field full. Here's what I do. (Please tell me if there is a better approach).

    * I extend a TextField.

    * And in fieldChangeNotify() Iam trying to draw a rectangle that cotain a list of values that I give him. So I set up the movement of the navigation through the values and the onClick Event should feed the value of the TextField object.

    My problem here is, I'm not sure on how to repaint with the rectangle box (the box should come the screen just like Google search Field). I take a TextField because this Suggestbox expected actually users type inn values that aren't in the list. Your valuable inputs please.

    Thank you

    Do this in Paint screen method to apply the condition according to input textfield

  • Download assistance... Please!

    I bought 12 Photoshop and first 12 items about 3 hours ago and since then, I have tried to download these two programs with no results. I chose the alternative method as the method Akamai téléchargerais not. The other method is not yet in place... the small wheel turns and turns and never painted screen.  Help!

    If you follow the 7 steps (especially the steps 1,2 and 3), you can download it here: http://prodesigntools.com/photoshop-elements-12-direct-download-links-premiere.html

    and activate it with your serial number.

    If you have a problem (error, the page is not available or you are offered to the current version of adobe), you did NOT follow the instructions.

    the most common problem is unable to follow meticulously the 1, 2 or 3 who are needed to add a cookie adobe.com for your computer that lets you download directly without using the akamai Download Manager.

    again, follow the instructions and you will have no problem.

  • Since the last thunderbird installation 38.0.1, my screen renderings are incompatible. Many times only part of a screen is painted correctly.

    parts of screens are painted slowly or only appear after pressing PAGE UP, PG. Prev. Sometimes parts of screens are blackened (see my attachment)

    Try my temporary solution by disabling hardware acceleration described here and see if that solves it (at least temporarily until we can get an official "addressment" of the question): https://support.mozilla.org/en-US/questions/1067959#answer-743232

  • Firefox 5.0 is partially paint on other screens of the application

    Since the installation of Firefox 5.0, I'm having a problem with Firefox partially overwritng the screen I am currently looking. Initially, I noticed that when you look at a screen of Outlook I would get repainted Firefox Outlook parts at some point, but for now, I'll have a big problem with downloads of Firefox screen partially painting on the main screen of Firefox every 30 seconds or so that I'm downloading a large file.

    In the case of Outlook, I have the impression that Firefox has a kind of feature repaint delayed but doesn't realize that the visible screen is so more than Firefox when he decides to repaint. It could be the same for the screen of downloads as the bar at the top of the screen is not reappear every 30 seconds, only a part of the screen.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    Safe mode disables extensions in Firefox 4 and later versions, and disables hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    If disable hardware acceleration works then check if there is an update available for your graphics display driver.

  • Trying to copy and paste a screenshot of a video game and stick it on the paint. All I get is a black screen Uni I put any graphic setting. How to paste it on Paint? I am able to do it on Vista, but not on Window7.

    Screenshots to work in painting with Windows7, unable to work, all I get is a solid black screen capture.

    I thought that is no longer a problem in the current version of Windows. In previous versions all that depended on what you were trying to catch and how it was made.

    First, make sure the game doesn't have its own ways to make screenshots. There are a lot of games that allow you to do and screenshots that are just after that saved to a folder. You must search settings keyboard... maybe you will find a similar option. What is the name of your game... maybe I can try to find this option.

    Other things... maybe it will be possible to intercept a tool cutting, then try this: when you're in the game, press the Windows key (it will open menu start without closing a game) > all programs > Accessories > capture tools > press an arrow next to new , and select full-screen Snip

  • Microsoft Paint - Image is normal on screen but prints too small?

    Microsoft Paint - Image is normal on screen but prints too small?

    When I'm in the paint all my settings are the same that I use always and my image appears normal size on the screen but when I go to print I put it on the scale to fit on page 1 x 1 (so it's all about a piece of paper), but then I have print preview and the image is just a 1-inch picture in the upper left corner. I had done several times in the past and never had a problem. Why does the image offset? Also when I remove the scale down to 1 x 1 page it can tile the image on 4 pages. So if the image is the great whys it shrinks it do much when I as a single piece of paper? Help!

    Go to the options of paint by clicking on the top left of the menu bar icon (the one to the left of the 'Home' that looks like a sheet of paper lined w / an arrow next to it).  Choose 'Properties' from the menu drop down.  Keys to your measurements of paper (ie. 8.5 x 11 "or 8.5" x 14) depending on the direction you have chosen - portrait or landscape (under print options: Page layout) which should solve your printing problem.  Unfortunately, the program seems to use some default preset every time that you open the Paint program.  That's how I came across your question;  I'm trying to find how to change the default setting. During this time, I guess that we just have to continue to change it before printing.

  • ALT-print screen copy of Image in Paint does not

    I have a Vista laptop (64 bit) with a USB keyboard and a mouse, and when I do ALT-print screen my screen does not seem to be copied to the Clipboard. When I do Ctrl + V in the painting that nothing happens. Paste option is grayed out when I select Edit in paint. Does anyone know why this is?

    It's strange.  Let us know if you continue to have problems.

  • using the prt screen button with paint

    I used the prt scrn button on the key Board allows to record several web pages, but when I open the paint program, to view my web pages recorded only the last page I captured is present. How paint program saves the pages sent by using the print screen key?

    You have to press print screen then paste the image into a painting.

    It really copies just the last screen you have captured using the key.

Maybe you are looking for