Bitmap and background

Hi, I have the following code, which shows a screen with a green background and text. I would like to place a small image in the Center, under the text. I placed the bitmap image in the code, but it does not appear. My code is as follows:

Hi, ash_1987uk

I just run your code with the following modifications, and it works for me.

//BitmapField bmf2 = new BitmapField(logoBitmap2, BitmapField.FOCUSABLE);//add(bmf2);MainScreen newScreen = new MainScreen(){    Bitmap logoBitmap2 = Bitmap.getBitmapResource("football.png");    int imgWidth = logoBitmap2.getWidth();    int imgHeight = logoBitmap2.getHeight();    int imgXPos = (Display.getWidth() - imgWidth) / 2;    int imgYPos = (Display.getHeight() - imgHeight) / 2;    int imgTop = 0, imgLeft = 0;                public void paint(Graphics graphics)    {        graphics.setBackgroundColor(Color.FORESTGREEN);        graphics.clear();        // draw bgImage here....        graphics.drawBitmap(imgXPos, imgYPos, imgWidth, imgHeight, logoBitmap2, imgLeft, imgTop);        subpaint(graphics);    }};LabelField labelField = new LabelField();

Tags: BlackBerry Developers

Similar Questions

  • I need to change my font color and background color are both black

    Hello
    I chose accidentally black for my font color and background.
    Since everything is black, I can't see the text in my window from the preferences (or modules) to restore.

    Any ideas on how I could do this?

    Thank you!
    NC_P

    Thank you for the update. If you notice anything important missing, as the parameters for an add-on, you can open this prefs.old file in a text editor and probably find it in there. We'll be there if you need help in this sense.

  • What happened to the window start Firefox with images and background chill music?

    Since the upgrade to a new computer running Windows 8 (64-bit) my start page of Mozilla has not all the themes of big picture and background chill options of music that I really enjoyed. How can I get that back?

    Hello, the themes of the photo and background music were never part of the homepage by default in firefox - maybe you had a personalized homepage or an addon on your old computer to achieve - if you find that you have used before it will be certainly possible to set up the same way on your new pc...

  • Change of FG and background color of the individual elements in the array

    Is it possible to change the color of foreground and background of the individual elements of the array?

    According to the the link below it is not.  But that was 4 years ago and I wonder if it's possible with the new version of Labview.

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=125484&query.ID=927250#M125484

    I could not find a way to do it using Labview 8.2.1.

    Thank you

    Adam

    No, you can't.  The tables have to share almost everything except the real value of the data.  As mentioned, you can use a second indicator to indicate your values of interest.  If you just want to change the background color, you can make a table of squares of color which lies behind the numbers array.  Make the background of the numbers (and the transparent table container.  You can do it 'look' as the BG of the numbers is changing.  The FG Color is not as easy.

    A (maybe better) alternative is to use a table or a listbox control to display your table.  They allow you to change the colors of the cells.  You will need to convert your table to an array of strings.  If your table is small, the hit on the treatment will be not significant.  But if you have REALLY large picture, you'll notice put worn times on day of the table/list box.

  • Do plan and background of the same color

    Is there a simple way to make the foreground and background color to the same color?

    The color eyedropper tool only allows you to choose between foreground and background samples collection or separately.

    I want to sample a color and use this sample of foreground and background.

    Otherwise, it is very difficult to match the two colors.

    I found a way to do it:

    Sampling of the color I want, he puts on the menu history on the tool of the color value.

    I can move to the foreground or background selection and select this color in the menu background.

  • Click on ease of access and background checked and magnifying glass - want to go back to my original - nothing works I'm trying

    facilitate ease of the bottom access at the start of the cp - was curious to know why he was always there - given some options that I thought would be to my advantage - Word Magnifier and background color have 2 choices - now I have a black background and hate - all means of entering my default - nothing works-someone can help - cannot restore to yesterday (just did this today) because there is no manual way to come to affect the sleep - last restoration date was in 2011 and that's all what he shows me-

    Hi BeatriceCalvacca,

    Welcome to the Microsoft community where you can find all the answers related to windows. Looks like you have problems with the bottom once you have clicked on an option in the ease of access.

    First of all, let's change the accessibility settings:

    1. click on start, then click Control Panel.
    2. click on "Ease of access", then click on 'accessibility '.
    3. click on "make the computer easier to see.
    4. in the accessibility Control Panel window, scroll down and under "Doing things on the screen easier to see," clearly the box "Remove background images (sicettedonneeestdisponible).
    5. click on OK.

    Now, let's go and switch back to the Windows Vista default theme:

    1. right click on the desktop, and then click Customize.
    2. under "Themes Aero", click on "Windows vista".

    This should return the display to the default settings, how you can customize your office again.

    I hope this helps. If you have any other questions feel free to respond and we would be happy to help.

  • How to get other themes start screen and backgrounds for Windows 8?

    Former title: how to change windows 8 start wallpaper?

    Hello

    How can I change background menu stars and their in windows 8? I know that there are some model in customize / splash screen. but I want other do and background

    Hey Amir,

    Welcome to the Microsoft Community Forums and thanks for your post about it.

    Want to know where you can get the other start screen themes and background for Windows 8 outside the themes and background images already present images in Windows 8 by default.

    Let me inform you that we will not be able to add additional themes and backgrounds for the splash screen in Windows 8. However, it is possible for the desktop interface. If you want to add backgrounds and additional desktop themes, you can visit these links and then download your favorite themes and background images.

    For desktop themes:

    http://Windows.Microsoft.com/en-us/Windows/themes

    For wallpapers

    http://Windows.Microsoft.com/en-us/Windows/wallpaper

    For more information, you can also take a look at this link:

    Customize your PC

     

    http://Windows.Microsoft.com/en-us/Windows/personalization-Gallery

    Hope this information is useful. Please get back to us, if you still have questions about the present. You can publish all your queries related to Windows on Microsoft Community Forum and we will be happy to help you.

  • Type of swatch InDesign CC disappear of display and background options

    According to the title. can someone help me? its very difficult when im on 100 on color chart and I way cant that is RGB, CMYK, PANTONE, SPOT. and background options have disappeared, only the cc Library button is on the left.

    Screen Shot 2015-09-22 at 11.15.09 am.png

    Try to restore your InDesign preferences:

    Garbage, replace, reset or restore the application's preferences

  • Foreground and background colors

    I have problems with masks. I have my foreground and background color defined in black and white (or I think I do), but when I use the foreground color black it does not block on the subject, but fills the area within the mask. When I use the brush to every brush stroke does not appear on the mask until I have let the mouse go. 20150821_085610.jpg When I click on the foreground / background of the pop - up and black color picker box is within the current zone / new, upper right corner. I tried all the reset tools. I have 12 items. I am really a novice

    I do not have PSE12, but I have this suggestion...

    At the top of the menu bar, click window. This allows to display in my ESP 3 toolbars:

    The check mark indicates that the bar is visible.  By clicking on the name will turn off the check mark and hide this bar.  Perhaps your toolbar at the bottom is one of the reasons. If so, you can temporarily hide this toolbar. In PSE12 this option could be available somewhere else.

  • I use Photoshop elements on Windows 8.1 12.  When I go in the Expert Mode to change the available toolbar is displayed in a single column and missing several tools which foreground and background color.  How to restore the original toolbar?

    I use Photoshop elements on Windows 8.1 12.  When I go in the Expert Mode to change the available toolbar is displayed in a single column and missing several tools which foreground and background color.  How to restore the original toolbar?

    Try to re - set preferences.

    Go to: Edit > preferences > general (menu Photoshop Elements on Mac)

    Click on the button Reset preferences on the next launch

  • Quick mask sometimes Exchange forefront and background - colors

    I use a lot quick mask, and I find some of the user interface issues in imagine.

    (1) sometimes when I switch to quick mask (Q key) mode, forefront colors and background reverse. Sometimes they have not. At the moment they are on a computer but that you don't have on the other hand. I've never been able to understand why this is, or what I can do to change. (FWIW, in my view, the reversal of the colours to more confusion, and I hate when they don't change).

    (2) when I go in the Quick Mask mode and then get out, my changes of selected layer. If I have a selected layer mask, then hit the Q key twice will be the selection of the layer for the pixels in the layer mask. I can't tell you how many times this has led to edit pixels rather than the mask. Is it possible to disable this option, so that the layer mask is selected? (If not, I'll post this as a feature request).

    (3) I tend to work full screen mode. Is there some landmark easily recognized if I am in master view fast or not other than the State of the button quick mask the hard-to-see "down"? I am continually getting confused because sometimes when I work quickly, it seems that the Q does not record, so I hit him twice, and then I spend a few seconds trying to figure on what mode I. I like the text in the window that gives me instant feedback of my status, but I like the extra pixels of mode full-screen. Y at - it another option that gives me full screen but easily seen your comments on my editing mode?

    I use Photoshop CS 6 for Macintosh. The title of my post reflects my pressing question most on the quick mask, but has decided to examine the possibility to publish other issues.

    TIA

    Alan

    There seems to be at least three sets of foreground/background colors:

    Channels of a color. -default black and white

    B. quick mask channel - default black and white

    The channels Alpha C. and mask - default white/black

    I was framed by the Alpha and the default mask is the opposite of other default values.

  • Voice and background music.

    Is it possible to have the two narrative voices and background music in the same blade?  I would like music to start and then gradually fade when the begns voice speak.  I use Captivate 4 but will soon Captivate 6.

    Thank you.

    Hello

    If you import the audio file of the slide, go to the properties of the slide and click on the tab "audio".

    Looking for fade in and fade out options for audio.

    Kind regards

    Mukul

  • Can I make a Flash frame as a bitmap and send over TCP/IP?

    I want to draw some combinations of bitmaps, vectors, flash, text etc and forms draw programmatically in my film using ActionScript and then get each pixel "rendered" my film (to the 100% view) in a table that I send to another program over TCP/IP. Can someone help me out here?

    The first part of the question is if its possible to render a frame which is a collection of Flash elements as bitmap? I know that I can browse a bitmap and get every pixel using getPixel method but I'm trying to access the last image rendered on my screen, including, as I said text and Flash Forms.

    The second question is what would be the best way to send this "video image" on TCP/IP? Can I use a XML socket connection? It's the only way I know how to send data from Flash over TCP/IP, but I don't know that if this is the only way - the help page indicates the data must be in XML format, which seems heavy for this application.

    I am now using Max/MSP/Jitter to make a screenshot, the size and the location of my Flash movie and then send the resulting matrix with a 'jit.net.send' object (which lets send you video over TCP/IP frames), but it's too awkward for installation that I'm building.

    Any help would be greatly appreciated!

    -bob

    If you want to see is a single item, you can create a bitmapdata object and then call the draw() method and pass the movieclip containing all your assets.

    As for the second part, I'm not sure about this.

  • Really nooby question about background/foreground and background/contour switch.

    Hello!

    I was recently introduced to Photoshop through work and I use it for an amount of things to many successful however recently after using a tinkering with the Brush tool and background/foreground color in the Toolbox I am unable to return to change colors of background/outline. I searched online a fair bit for all solutions to this problem, but nothing helped. Whenever I paint forms that they simply appear as colorless with no fill or stroke and just sketch it that I drew. Could someone please direct me how to change the icon of the 2 area (x button) to return to the power change and change my background/border colors? I understand that it is probably quite simple, but it feels like I hit a brick wall with a lot of sharp rusty nails sticking out it >. <

    Much love, Scoojj

    Hello and welcome! In the options bar, your vector tool is set to the path: (B) and the option of your choice is the one: (A) layers of forms

    Option (C) is used to having pixelated layers.

  • Full text and background semi transparent

    I need to have full text and background semi transparent.

    I found a solution here CSS;

    http://CSS-tricks.com/CSS-transparency-settings-for-all-broswers/

    But using a semi transparent PNG24 would be better for older browsers? IM using the text in black with a white backgrround, so if in a few browsers transparency has been lost and the bottom turned white, it would be OK.

    Thank you

    Here's what looks like a transparent PNG in IE6. Notice the slight blue tint around what should be transparent areas?

    jQuery PNG fix script can help.

    http://jQuery.andreaseberhard.de/pngFix/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

Maybe you are looking for