Positioning a background image?

I have a fixed-size image (498 x 94, in this case, but can be different) and that as the background.

However, the image should not be stretched or repeated, but drawn in the lower right corner.

Using a container with bottom set to a ImagePaint seems to be the usual way, but the periodicity only allows to stretch or tile, not use unmodified, see https://developer.blackberry.com/cascades/reference/bb__cascades__repeatpattern.html#enum-xy

How can I place an image stretched, incomparable to a certain spot as a background?

You can use a DockLayout and draw this item in the lower left corner. No need to set it as a background image.

https://developer.BlackBerry.com/Cascades/reference/bb__cascades__docklayout.html

With docklayout, it is possible to draw elements on top of eachother. So what you're looking for.

Or create a new image (1280 x 768) and put the image in the lower left corner. And then just use it as a background image?

Tags: BlackBerry Developers

Similar Questions

  • Background Image position 30px right?

    Is it possible to position a background image a certain amount of pixels on the right?

    I know that you can align right or left, and if left you can have say 30px from the left, but could you have 30px from the right?

    Thank you

    Hello

    Yes, you can do it if you know the width of the page, for example if you have a width of 1000px page you would use-

    background-position: top 970px;

    or you can use a value of % if your page is a fluid design

    background-position: top of 90%;

    PZ

  • Background Image positioning

    I know how to position my background image in the Center, but I also want the workspace to the top. What want to know, is it possible to make my background image in the Center AND I 'x' pixels from the top of the page.

    background-position: center 50px; / * top left * /.

  • Difficulty in div background image

    Hello

    I did a lot of research on this subject and answers os tons were developed, yet, none has solved my problem so far.

    I'm doing the background image in a div that will be fixed when I scroll vertically.

    Have a model manufactured, in which the only editable div is the rightdiv. (in red, to be easier)

    Here is my code

    CSS

    {body
    margin-top: 0px;
    margin-bottom: 0px;
    background-position: Center;
    background-image: url (.. / Images/bgdr.jpg);
    background-repeat: no-repeat;
    }


    {#wrapper}
    height: 875px.
    Width: 1000px;
    margin-right: auto;
    left margin: auto;
    background-repeat: no-repeat;

    #header {}

    background-repeat: no-repeat;

    Clear: none;

    float: none;

    height: 214px;

    Width: 1000px;

    background-image: none;

    position: relative;

    padding-top: 10px;

    {#leftDiv}
    Clear: none;
    float: left;
    height: 500px;
    Width: 245px;
    position: relative;
    text-decoration: none;
    }

    {#rightDiv}
    Clear: none;
    float: right;
    height: 484px;
    Width: 755px;
    position: relative;
    overflow: auto;
    }

    #footer {}
    height: 100px;
    Width: 1000px;
    Clear: both;
    position: relative;
    padding-bottom: 20px;
    }

    And here is my HTML code

    <!-InstanceBeginEditable name = "RightDiv"->

    < div id = "rightDiv" style = "background-image: url(Images/informacao.png)" >

    < / div >

    <! - InstanceEndEditable - >

    Well, it's that on Internet Explorer 9, the background image repeats vertically when I scroll vertically. On Chrome it will stay fixed on parchment (and that's what I want).

    I tried to add style = "" background-attachment: fixed ", but that branding will match difficulty itself relatively to the entire page, not the div only." In addition, she repeats 4 times for oocupy the screen. I can solve that by "no-repeat", but it is always attached to the browser page, not of the div.

    I tried to solve this problem for days... Help would be very appreciated.

    Funny is that this only happens in IE9... Chrome works perfectly.

    After a little research, I found it's actually "mode of operation" in Internet Explorer, all versions. A fixed background image goes out the window of the browser for positioning.

    The work around is to place a div container around the div scrolling. Place the background image in this div without css positioning container or an attachment and turn off a background image or color in div scrolling.

    Something like that...

    your content here

  • The positioning of the image Windows 7 Home premium 64-bit background will not change

    So I can change my background very well, but the position of the image, I can't. Position as in, tile, stretch, Center, filling and adjustment. I think he's stuck on stretch. I read a bit about it on the forums and some people were saying to install a "facilitator of photo wallpaper". I tried to install this and it did not work. I am not finding other solutions, so I don't know what to do =)

    Good question. Not sure, but it seems to have something to do with the aspect ratio.
    For example -.
    I have pictures on the internet that measure, 2220 x 1476, 960 x 540, 954 x 534, and 700 x 467 pixels.
    and options of wallpaper does not allow for anything other than full screen on any of them.
    The same is true if I convert photos in 1920 X 1080 (the native resolution of my screen).

    However if you use a photo with a resolution that measures say, 800 x 600, 2048 x 1536,.
    (the res native to my camera), it will appear with the different options available in the
    Customize the wallpaper option.

    If I use Photoshop (or similar) to change the size of say, 954 x 534 at 800 x 600 or 1280 x 1024.
    the options are available.

  • 19.02 Firefox breaks the position of the background image.

    Hi, I have a jQuery plugin that worked well until I downloaded Firefox 19.02 now the Image slider does not work.

    More precisely the position of backgroundImage doesn't seem to work. Instead of each piece of the picture being selected using a specific and different up and left (x and is position on the Image) all the pieces are showing the top left corner! It worked well in the earlier version of Firefox and still work on the latest versions of Google Chrome, Safari and Opera.

    Appreciate any help you can offer.

    TC

    It's logical. If Math.abs (yPos) works, then yPos cannot be a string, and therefore cannot contain units.

  • I can move the position of the pixel-values (browser-filling) background image?

    I want to design a landing with Muse page. To insert a background image that fills the screen on the top and to the left and right of the browser window edges, I think the best way is to put a picture as the fill "browser" (I this translated from the German term 'Navig-deflectors', then choose suitable size ('scale Passend").

    Unfortunately, if I'm having a menu bar on top of this image, it will always hide the upper part of the image. Can I therefore change the background a little image?

    There may be several ways to achieve this goal within the Muse.

    -Use composition to create the menu, where the menu will only appear on mouse click or hover.

    -Use any image editor and add a rectangle empty start of image where menu will be rendered.

    -Apply the scroll on the Menu so that the menu only to scroll page should appear on the page.

    -Make the homepage with only the picture fill and the link to get inside the site with sub-pages, which should include a menu.

    Thank you

    Sanjit

  • How to position background image?

    How to poaidion the background image in muse 2014

    I have a color that covers the entire screen, but image is aligned with the right side of the screen?

    Home

    I want the image centered in the page. not off the coast of one side.

    Hello

    Please use this image as the fill browser with the following parameters

    Concerning

    Vivek

  • CSS positioning of elements of PA for the text on the question of background image

    I'm relatively new to dreamweaver from frontpage in the dust. Some things have been easier or I'm missing something. My client site uses backgrounds customized site on most pages, and I just want to understand how the text of the provision above. From what I've read, it seems that using AP elements is the most appropriate at this stage of the construction.

    I can't to the do stay where I want that they. They are fine until you go full screen, then they move to the right. I need to find a way to keep them in one place no matter what. I'm sure you get the idea. Any help would be appreciated.

    http://www.homeworks4u.ca/Sitemap_Homeworks4U.html

    Non-living sites. I'm just waiting for text... and trying to figure out how to do so that he can stay on top of my baggage without messing with my menus.

    Thanks in advance,

    Scott

    APDivs (formerly known as layers) are NOT the best approach for this.  Here's why:

    http://apptools.com/examples/pagelayout101.php

    (1) find a good, shaping CSS to get started with.

    http://ALT-Web.com/templates/basic-1-Col-fixed.html

    (2) a text on a complex background image alignment is futile.  It is a concept of impression that Won't hold up on web pages because you can't control the browser settings, the screen or the text sizes.

    (3) height is a restriction in all browsers except IE.  Don't use values of height on containers with text inside them because this will inevitably cause failures when the text size is increased or amount of content exceeds the available space.

    (4) if necessary to show a background image, use the min-height CSS property.

    Tables to CSS Web Design part 1-
    http://www.Adobe.com/devnet/Dreamweaver/articles/table_to_css_pt1.html

    Tables to CSS Web Design part 2-
    http://www.Adobe.com/devnet/Dreamweaver/articles/table_to_css_pt2.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web-design.blogspot.com/

  • Set the background image of a cluster? [LV 2013]

    Hello-

    Researcher, said, "why don" t you turn the image on the front panel and then decorate the image with the controls? See? Problem solved. "And the door closes.

    So, I take the picture, scaling properly and voila! It is now the background image.  Then add controls.

    The horizontal and vertical scroll bars to move controls... but the background image is not followed.  So if someone touches the scroll bars (they are required) then controls and image are aligned.  Worse yet, their modified track manually is a pain in the eye-hand control.

    I could put in a button titled "realign" and have it reset the position of the scroll bar. Or have the scrolling screen VI bar position (look at the FP zero spot) and some treatment to shift the image of the picture.  What is its painful.  Is there another way around the problem?

    HM. A cluster? Clusters follow the scroll bars. But I can't seem to put a background image a cluster. The background color can be changed... but I don't see a way to paste a picture.  I tried customizing the cluster control and attempted to use the same method to add an image as on the front panel (with the right button of the scroll bar, follow the instructions). This has changed the background of the typedef would control.  Saved.  Tried to use it. LabVIEW will > BEEP<  and="" nothing="">

    I really want to avoid building this complex picture of decorations.  Especially when the image has chemical compounds in the boxes: how to index and the letters and numbers?   That... and the image is one of these steps 'it's refinement... ».

    Thank you for your time.

    Mark

    You don't give enough information on how this actually looks like and I don't have any experience with background images, but I would simply say, you drag the image file in the public Service and use the command menu in the toolbar to move backward (Ctrl + Shift + J) and then it must maintain position relative to other objects. You can then use the same menu to lock, so that it is not moved accidentally. You can also place an image control in the back and load the image in the code if it changes a lot, but this isn't a recipe for positioning the elements properly.

    I also generally agree with Martins that scrolling is a flag. If you need to scroll, you look and see if there is a problem and other solutions.

  • My office shows only a partial Background Image every time

    For about 1 week, my office no longer displays the full background image.  Whatever the base image that I chose, that is my personal image or one of the options listed, when it displays on my desk he chops off the coast of the part of the background.  I already went to properties, Desktop and tried different "positions" (alias tile, Center and stretch).  The problem persists.  The only recent change that could possibly explain what I was doing last week online search and my computer started acting weird after that I clicked on one of the sites.  I had to force it to close and when it restarted, my Active Desktop had been turned off (I guess that as a protection).  But since then, I was able to reboot and restore my desktop computer 'active'.  So I do not understand why there is still a prob.  Thanks in advance or any help you have to offer.  :)

    Hi Nicole2012,

    Try to change the resolution of the screen and then try to change the wallpaper.

    To change your screen resolution

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/display_change_screen_resolution.mspx?mfr=true

     

    You can also read the article and check mentioned below.

    Resources for troubleshooting problems in Windows XP

    http://support.Microsoft.com/kb/307960

    Let us know if it helps.

  • Windows xp monitor does not display the background image

    My windows xp screen does not show the background image. Started when I changed the photos there twice. Now, the background image is only 1/4 of the image on the left 1/4 of the screen. The rest is white for 3/4 on the right side.

    Other images, all jpg files, are the same.

    Hi edwardo418,

    Check that your post office is set to stretch. Perform the following steps.

    1. Right-click on an empty space on the desktop.
    2. Select Properties.
    3. Select the Desktop tab
    4. Change the setting to Stretch under Position
    5. Click on apply
    6. Click OK

    Let us know if that helps.

  • wallpaper will change the position of the image

    HP Pavilion dv7t 2200 - I put one of my pictures as wallpaper, but the position of the image is stuck on "limousine."  I try to choose other positions of the photo and clicking "save changes", but nothing happens - always stays on "stretch".

    Does anyone have a solution for this?

    Well you didn't say what OS your running, but if windows 7, use this link http://h10025.www1.hp.com/ewfrf/wc/softwareList?os=4063&lc=en&dlc=en&cc=us&lang=en&product=3999449 and at the bottom, install the screen background picture position enabler

  • Background image disappears when the user scroll down

    Hello

    Here is a class that paints a picture as desktop wallpaper. My problem is that if a vertical scrolling is on the screen, when scrolling down the background image does not scroll also. Is it possible to repeat the background so that it is always on the screen when the user scrolls down.

    Thank you.

    SerializableAttribute public class BaseVerticalFieldManager extends VerticalFieldManager {}
        
        
    public BaseVerticalFieldManager (long style) {}
    Super (style);
    }

    Public Sub paintBackground (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Constants.BACKGROUND_IMAGE, 0, 0);

    }
        
    }

    adrianeireyahoo wrote:

    Public Sub paintBackground (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Constants.BACKGROUND_IMAGE, 0, 0);

    }

    The values highlighted are wrong - you need to keep track of the Manager scroll position. In addition, using Display.getWidth () and Display.getHeight () isn't exactly smart - use getWidth() / getHeight() Manager itself.

    In short, the correct code would be:

        public void paintBackground( Graphics graphics)
        {
            graphics.drawBitmap(getHorizontalScroll(), getVerticalScroll(), getWidth(), getHeight(), Constants.BACKGROUND_IMAGE, 0, 0);
        }
    
  • Cannot change the position of the image to my desktop wallpaper.

    * Original title: I can't change my background image position.

    The image of my wallpaper position is always in "stretch" I tried to change, but my computer still affects that. Is there something I need to install to solve this problem?

    Thank you for this, but I found a solution earlier on the site of HP.

    I searched my computer laptop "support and troubleshooting" tab, then click "drivers" and then click "software solutions".

    I downloaded what's called the "wallpaper picture Position Enabler" and now the problem is solved.

Maybe you are looking for