Image of the Logo transparent as a header on a background image.

Hello

My application has a static background image & static header which is a transparent logo image.  I tried with the code below... but the background of the logo is always solid white color, which I don't want. It should be transparent.

import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.system.*;
import com.hdlogix.test.app.BBTest;

public class BackgroundImageScreen extends MainScreen{

    private VerticalFieldManager contentManager;
  //  private HorizontalFieldManager headerManager;

    private BBTest bbTest = null;

    private Bitmap bmpLogo = null;
    private BitmapField bmpField = null;

    public BackgroundImageScreen(BBTest bbtest)
    {
        super(NO_VERTICAL_SCROLL);

        this.bbTest = bbtest;

         final HorizontalFieldManager hfm = new HorizontalFieldManager(Field.FIELD_HCENTER);

         bmpLogo = Bitmap.getBitmapResource("TransparentLogo.png");
         //bmpLogo.
         bmpField = new BitmapField(bmpLogo);
         hfm.add(bmpField);
         this.add(hfm);

        final Bitmap img_Background = Bitmap.getBitmapResource("BgImage.jpg");

        //rather than  adding component in the mainScreen
        //add components in this verticalManager and then
        // add this manager to mainScreen
        contentManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR)
        {
            /*

            public void paint(Graphics graphics)
            {
                graphics.setBackgroundColor(0x00ffffff);
                graphics.clear();
                super.paint(graphics);
            }

            */
            protected void paintBackground(Graphics g)
            {
             //   g.drawBitmap(0,0, bmpLogo.getWidth(), bmpLogo.getHeight(), bmpLogo, 0,0);
                g.drawBitmap(0,bmpLogo.getHeight(),img_Background.getWidth(),img_Background.getHeight(),img_Background,0,0); //Background img

            }

            protected void sublayout( int maxWidth, int maxHeight )
            {
                int width = Display.getWidth();
                int height = Display.getHeight() - hfm.getHeight();

                super.sublayout( width, height);
                setExtent( width, height);
            }
        };

        // create a couple of buttons for testing only
        ButtonField button1 = new ButtonField("Button1");
        ButtonField button2 = new ButtonField("Button2");
        contentManager.add(button1);
        contentManager.add(button2);

        this.add(contentManager);

    }
}

How the logo image will become transparent?

As this requirement for JDE 4.2.1 I have to use the above method. JDE 4.7.0.41 with the code below, it works just fine besides that BitmapField contains the logo as mentioned above. I do not add additional code to make the image of the logo transparent.

 vfManager = (VerticalFieldManager)screen.getMainManager();
            Background bg = BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("BgImage.jpg"), Background.POSITION_X_LEFT, Background.POSITION_Y_TOP, Background.REPEAT_SCALE_TO_FIT);
            vfManager.setBackground(bg);

I'd appreciate any help on this.

Thank you best regards &,.

-DK

If your problem solved can solve you the thread.

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • Save the Logo with a Transparent background

    Hi, I am building a company with Photoshop CC logo. The main objective for my logo is so he married well in my site header. As you can see in http://comparedeals.net my mobile phone site, I had to change the background color of the Web page to white as the logo is not transparent. How to make the white background of the logo transparent?

    I know how to remove the bottom by this invisible layer but when I save the file as a JPEG or PNG image, the background is always white - which requires me to have a white background color for my Web site.

    I know that you can save money with transparency, but I don't remember how I did the last time I did a logo. Anyone know how?

    Thank you.

    You can do this by removing the bottom completely and use the shortcut
    (Shift + ctrl + alt + s) which will take to save you for web window. Select png-24 format for an image of high quality from the drop-down list and it should serve your purpose.

  • Need to remove a background image/text logo (transparent)

    I am a new user and have tried the masking tool and the Eraser tool background without success on this design. The logo looks like thisJenniferLogo.jpg

    It's for a Web site, and we want the image on the site banner to show that behind the letters/image. Is this feasible and if so, can someone please tell me how? Please and thank you.

    Eliminate the paper box can be done with precision using the mixture control if the Style layer.

    1. open the file and if the layer is locked, drag the lock to the trash.

    2 Cmd + click click the new layer in the layers panel to apply a layer below the art.

    3. return to the upper layer and double-click it in the layers panel to bring up the layer Style.

    4. in the section mixture if at the bottom of layer Style, move the slider of the gray-scale top of page from right to left until the white area becomes transparent. It is a small gesture.

    For extra precision, to the place where the bottom is about to disappear, you can click on the left half of the slider to divide and move it gently to the left when you look at the tone in the illustration are disappearing.

    5 layer > merge down and save the psd file.

  • How to save an image (logo) transparent so that it appears transparent on any background color such as a gradient or black?

    How to save an image (logo) transparent so that it appears transparent on any background color such as a gradient or black?

    I save the image under 'transparent' file > new... but when I place it on a background gradient it keeps appearing in white. I'm saving transparent to be effective on any color, such as a gradient or black.  How I really save as transparent?

    As suggested by JJMack, make it transparent (or partially)...

    Save it as a file in PNG format for a composite web browser with partial transparency.

    -Christmas

  • Change the Logo in PNG Transparent black white

    I have a black transparent png logo. What is the best way to change it to a white transparent PNG logo? I have been using the magic wand, inverting the selection and then painted white but I can't select all the edges of the internal form letter "IIEP. (NB we work with these people, so I didn't steal to use. I'm writing a few models for them and you may request that a white png, but I wanted to see if I could make one in the meantime).

    Is there an easier way to convert white to transparent?

    Here is the logo in black: http://www.imperial.ac.uk/edudev/flyers/UNESCO-IIEP_logo_black.png

    You don't need to choose something that is already enabled. The existing transparency of this image makes this task easier.

    Just open your levels (CTRL-L) and drag the white marker on the left, just after the outbreak.

  • Why pdf is not displayed / the logo image in the pdf Viewer so that we use mozila 34.0.5 version?

    Hi support them.

    When we opened this http://www.internationalrail.com/pdfservice/lbqujn.pdf URL in mozila 34.0.5, then we are not able to see the logo/image in this pdf at the top link on the left, but when this file download in our local system, then, we receive pdf logo.

    So please let me know what the problem is.

    Thank you
    Sanjay

    For more details please see the attached screens

  • Why the image of the logo is not display in Firefox?

    The image of the logo for one of my sites does not appear. The alt image info is displayed. It is a relatively new problem. In older versions of Firefox, the image correctly. As well, the image displayed in browsers, Webkit and IE10. There is a specific problem of Firefox. The main URL for the site is: http://sabaki.aisites.com/dbs323/project/masterAi.php

    If you go to this URL in Firefox, you will see 'image of the logo' spread over two lines and before the text "COTin. If you view the same URL in Chrome or IE10, you will see the image. I have screenshots of the problem, but there is no way to include them here.

    Thank you, shift + reload has worked at the second attempt. Interesting that I had drained the cache many times previously (on the previous days in the last month). Good thing to know.

  • All-in-one printer, HP Officejet Pro 8600 Plus will not print the image in the logo of the company

    I have a Mac the OSX Lion version 10.7.3 (11 d 50) I recently installed this printer. I printed the other documents in color without problem.

    Now, I'm trying to print an invoice with my company logo. The X in the logo is an image that has different shades of blue, but it prints other items on the invoice that are blue. It also correctly print the watermark in blue.

    Any suggestions?

    Thank you for responding!

    It turns out that I had to change my color matching print settings to make it work. I went under correspondence of colors and changed the option provider corresponding to ColorSync.

    This automatically replaced by the profile glossy color Brochure instead of paper simply. It's a shame as this used toner and does not allow you to print a copy of the project.

    I tried a couple of the other profiles, but so far they use as much toner, or does not print the logo. I was subjected to time constraints, so I had to stop experimentation, but once this project is completed, I will try the other profiles to see if they work.

  • OfficeJet Pro 8630 Cup image of the logo of my company in Word doc and Quickbooks invoice template

    My 8630 Pro of Officejet newly installed works fine except it won't print a picture of the logo in a Word doc and a Quickbooks invoice. The logo image is near the top of these two documents. I tried the full software and the base out of the site of HP driver. Nor will not work. I broke the 8630 K8600 driver and it printed the logo and the rest of the document correctly but real soon. I use this in a small business. My other 3 types of (all HP) printers print the same Word documents and invoices from Quickbooks without problem. Convert .pdf files works but is not an effective workaround solution in a business environment. The printer test page shows that I use mxdwdrv.dll name driver, config file UniDrvUI.dll and driver version 6.00. Ever run HP Update, Print & Scan doctor and confirmed the new firmware.

    Thanks for the tips. I had one of my guys call the support company and he now works correctly with the driver Deskjet 6980. I seems a little slower, but works perfectly for us. I think that the phone call was more than 2 hours.

  • How to change the logo image in the Message Inbox

    Hello! I am a beginner to the BlackBerry java development and I want to change the image of the logo from the Message to the list, so if anyone has an idea please tell me what this means...

    OK, thank you nice to be with you Simon.

  • Navigate to the login page of workspace APEX while clicking on the LOGO image in the application

    Hi friends,

    IM an APEX application on top of the APEX 4.2.3 in the fact that in the properties of the application for the LOGO, I made a picture as

    #WORKSPACE_IMAGES #bluehill.jpg

    When I click on this image in the means of implementation, it redirects to the home page, because I don't want this redirect to happen all by clicking on the image. So, for that, on the interface tab, I erased the navigation link which is targeted for the HOME URL = ' f? p = & APP_ID.:1: & SESSION. "with a space, like this URL HOME choice is the mandatory option to provide.


    Once, after that I sent back a space for the URL of HOME page and after that if I clicked on the image using the application, then it redirects to the APEX workspace login page. Im not sure why this is happening shortly after I made reference to a space for that.


    Kindly help me to limit the page redirect by clicking on the logo of the application.

    Thanks in advance.


    Kind regards

    Mini


    If you don't want the logo as a link, edit the page templates and delete the href="#HOME_LINK#" attribute of the logo a element. (It should probably not remove the anchor element completely it can be used for styling purposes).

  • My desktop icons have a white rectangular box with the logo of Internet Explorer inside on the name of the program. Cannot change icon images.

    Most of my icons have the logo explore inside a small box, but stills has any name on the devices of the logo program. I tried to change in properties but it will not change.

    Fixed it myself. Able to run for each research program and then was able to restore it in a few days.

  • Adobe MUSE. The logo does not specify when the slide show in full screen is superior to header...

    In Adobe Muse.

    When I put the 100% width homepage slideshow and bring it full page at the top of the page, the logo cover upward. Everything is, the tabs and outs flies, but the logo disappears. The only difference is that the logo is a GIF file. Anyone know what I'm doing wrong?

    The GIF is set to be the top-level object and is pinned to the upper left corner.

    Any help is appreciated.

    -Bobby

    Hello

    Please add a new layer (via the layers panel), move this new layer logo; and to ensure that this layer is above the rest.

    Hope that helps,

    Sonam

  • Referring to a June 14 the question on the removal of the logo of a reactive HTML5 layout

    Willam replied:

    There are two ways to do this:

    • Import a 1 x 1 px transparent png image and set it as the image of the logo.
    • Remove the layout pages to the cell of the table with class "logo". Then update the CSS for the table.headertable and the cells in a table.

    I changed the logo, but I don't know what he meant by "remove the cell of the table with class 'logo' on the layout pages. What files?

    I think that "'update the CSS for the table.headertable and the table cells ' means remove the section of td.logo of table.headertable of main.css."

    Sorry for the noob questions, but I'm not a techie.

    You need to remove the table cell in the HTML code of the *.slp files. There should be ain the code HTML must be removed.

  • How to remove the spaces of a template header

    I'm trying to work myself through the understanding of the html codes using a model dreamweaver and creating a page for my company. I used dreamweaver before CC, but I try to understand the new changes.

    I came across a problem with the fact that I'm hoping to get help.

    I tried to replace a logo placeholder on the template with my own logo. I seem to have a little space to white at the bottom of the logo when I see mode live view or a browser. How can I get rid of him. I've tried combinations of 0 margins and changing the filling, but it seems I'm just whistling in the dark. Here is the code:

    The CSS associated with this page is here:

    !-[CodeBlockStart:dec9d6ff-17ba-4058-9575-0b88476c1251]-->@charset "UTF-8"; body {make: 100% / 1.4 Verdana, Arial, Helvetica, without serif;}]   background-color: # 42413.   margin: 0;   padding: 0;   Color: #000; } / * ~ ~ Tag of the element selectors / ~ ~ * / ul, ol, dl {/ * because of variations between the browsers, it's best practices to zero padding and the margin on lists.} For consistency, you can specify the amounts you want to here, or on the list (LI, DT, DD) items they contain. Don't forget that what you're doing here cascade to the .nav list unless you write a more specific selector. * / padding: 0;   margin: 0; } h1, h2, h3, h4, h5, h6, p {margin-top: 0; / * deletion of the top margin works around a problem where margins can escape its container block.} The margin of the low rest it will take away from all of the following items. * / padding-right: 15px;   padding-left: 15px; / * adding padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any mathematical model of box. A block nested with side pads can also be used as an alternative method. {* /} an img {/ * this switch how to remove the default blue border displayed in some browsers around an image when it is surrounded by a link * / border: none ;} / * ~ ~ style for your site links must remain in this order - including the Group of selectors that create the hover effect.} ~ ~ * / a: link {color: # 42413;}   text-decoration: underline; {/ * unless that you style your links seem to be extremely unique, it is best to predict stresses quick visual identification * /} a: visited {color: #6E6C64;}   text-decoration: underline; } a: hover, a: active, a: focus {/ * this group of selectors will give a browser keyboard the same experience of hovering as the person who uses a mouse. * / text-decoration: none ;} / * ~ ~ this container fixed-width surrounds all the other blocks ~ ~ * / .container {width: 960px;}}   background-color: #FFFFFF;   margin: 0 auto; {/ * set to auto on the sides, coupled with the width available to the centres * /} / * ~ ~ the header is not given a width. It will extend to the entire width of your layout. ~ ~ * / header {background-color: #A36BE8 ;} / * ~ ~ these are the columns for layout.} (~ ~ 1) padding is only placed on the top and/or bottom block elements. The elements contained in these blocks have padding on their sides. This avoids any «mathematical model of box» Keep in mind, if you add lateral pads or border to the block itself, it will be added to the width that you set to create the * total width. You can also remove the padding of the element in the block element and place a second inner block with no width element and the necessary padding for your design. (2) no margin was given to the columns, because they all floated. If you need to add the margin, avoid placing on the side you're floating into (for example: a right margin on a block set to float to the right). Many times, padding can be used instead. For blocks where this rule needs to be broken, you need to add a statement of ' display: inline ' to the rule of the block element to tame a bug where some versions of Internet Explorer double the margin. (3) given that the classes can be used several times in a document (and an element can also have several classes applied), the columns have received the names of classes instead of IDs. For example, two blocks from the sidebar could be stacked if necessary. These can easily be changed to the ID if that's your preference, as long as you don't use them once per document. (4) If you prefer your nav on the left instead of the right, just float those columns the opposite direction (to the left instead of all rights), and they will return in reverse order. There is no need to move the blocks in the HTML source code. * / .sidebar1 {float: right;}   Width: 180px;   background-color: #C5C2B8;   padding-bottom: 10px; } content {padding: 10px 0;}   Width: 780px;   float: right; } / * ~ ~ This group selector gives the lists in the domain content space ~ ~ * / content ul, ol content {padding: 0 15px 15px 40px; / * this padding reflects the right padding in the titles and the paragraph above net.} Padding was placed on the bottom for the space between the other elements in the lists and on the left to create the withdrawal. These can be customized as you wish. {* /} / * ~ ~ The list of navigation styles (can be removed if you choose to use a contextual menu premade as Spry) ~ ~ * / nav ul {list-style: none; / * this command deletes the list marker * / border-top: 1px solid #666; / * this creates the top border for the links - all others are placed using a bottom border on the LI * / margin-bottom: 15px; / * it creates space between the following content browsing * /} nav li {border-bottom : 1px solid #666; {/ * Creates the separation of button * /} has nav, nav a: visited {/ * these selectors of grouping allows you to ensure that your links to retain their look button even after visiting * / padding: 5px 5px 5px 15px;}   display: block; / * Gives the link properties block causing it to fill the whole container LI. This causes the entire area responds to a mouse click. * / Width: 160px;  / * This width makes all the clickable button for IE6. If you do not need to support IE6, it can be removed. Calculate the width by subtracting the padding on this link of the width of your sidebar container. * / text-decoration: none;   background-color: #15EE00; } nav a: hover nav a: active, nav a: focus {/ * this changes the background and color of text for browsers of mouse and keyboard * / background-color: #ADB96E;}   color: #FFF; } / * ~ ~ Footer ~ ~ * / footer {padding: 10px 0;}   background-color: #CCC49F;   position: relative; / * This gives hasLayout IE6 to erase correctly * / clear: both; {/ * This clear property forces the .container to understand where the columns end up and contain them * /} / * HTML 5 support - sets new HTML 5 tags to display: block so browsers know how to render the tags correctly. * / section, footer, said by the way, article, header, figure {display: block ;}}

    Thank you very much for your help!

    Try this-

    What you are because space is the placeholder for the descenders of glyph on any item that is rendered in a text box (that is, an inline element). By making the image "display: block" you eliminate that space, because a block element is not top-down. If it works to your satisfaction then you can give the logo an id and creation of a CSS selector that contains this kind of block.

Maybe you are looking for

  • Why don't Firedox continues to ignore my requests not to upgrade my browser?

    I use the Firefox Extension memory to remember each Ttime I connect on Firefox to check Page options to make sure that Firefox has not changed the configuration on my preferences. I configured Firefox beta 15.01 for not having my updated browser up-t

  • HP laptop laptop 15-af15na: create recovery media

    I am now on my 3rd attempt to build recovery USB support. The 1st attempt at 53% and says something like 'error, try again' 2nd got 31% and said "rebecca.exe his mistake." 3rd attempt has been slain on "prepare disc" for centuries. What should I do n

  • help with superabundant ads

    I would ask for the help of the support community.  The problem is superabundant ads on Safari and Firefox.  Difficulties with a new machine after about 16 years as a mac driver. There are Apple products nine in the House. The new machine... Here are

  • Cannot install driver conexant on windows xp sp2

    Hello i really need help guys recently i installed Windows XP SP2 on my Vostro 1015 and everytime i install the Conexant driver it fails with this error "Driver installation failed could not find the media device for this driver" NOTE: in the past i

  • Refresh children Manager custom fields

    Hi all I have implemented my own handler class and substituted its scrollChanged() method. And I have a screen class with this custom as its child domain administrator. The handler class has a few bitmaps and label fields. Now, scrollChanged, I honor