Image of the scale when screen orientation change

I'm putting an image when screen orientation change, I put the logic based on sublayout. However, it is called no effect. It works fine the first time. Then, when I incline simulator, not touch.

BitmapField private;

protected void sublayout (int maxWidth, maxHeight int ) {}

Super.sublayout (maxWidth, maxHeight);

 

             if (width == Display.getWidth ())

{

                return;

}

on the other

{

width = Display.getWidth ();

ctrHeadImg = ctrHeadImg.scaleImage32 (scaleXFixed32, scaleYFixed32);

a = new BitmapField();

a.setBitmap (ctrHeadImg.getBitmap ());

loaded;

layoutChild (, a.getBitmapWidth (), a.getBitmapHeight ());

setPositionChild (, bitmap1.getLeft () + bitmap1.getBitmapWidth (), 0);

...................................

setExtent (w, h);

Can you elaborate on what you see?  What does not work?  Is called the scaleImage32 method?  The field is not be added to the screen or is the image not adjusted as desired?  What values are the scale by?

I recommend having a look at this post.

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=41782&query.ID=18...

Tags: BlackBerry Developers

Similar Questions

  • How can I change the scale when you use the measure tool

    How can I change the scale when you use the measure tool

    With the tool selected, right-click the document, and then select "rate of change of the scale.

  • iPad, screen Orientation change without moving the iPad? An application perhaps? Is this possible?

    I would like to have the ability to change the orientation of the screen without physically rotate the iPad vertically.

    Here's what I mean.

    I have the iPad on the desktop and I want to check the email in landscape mode, I move on the table horizontally to landscape mode and orientation should change. It is not for the moment. I have to raise the iPad on the table and to change the direction from Portrait to landscape and when I go back to an application demanding in portrait mode, I have to again raise the iPad on the table.

    I was wondering if there is a utility app that allows the switch without raising the iPad and turning to change direction.

    Hello amitkapila2,

    Yes a few apps will change your orientation when you start them. Try roating your iPad in landscape ounces landscape enable locking focus on the home screen (in the last control center) and then launch the application of it rotates so it's the app.

  • I have a problem with the cloning tool, when I retusch to digital photos. When I hover over the image with the cloning tool it slightly changes the picture and ruin. -What someone knows how to configure the tool so it doesn't ruin the image when moving be

    Hi there I do retusch on digitized images and when I move the tool between the dust spots cloning it changes the image slightly. Just noticed and got a wedge after working for several days.

    -Does anyone know how to put the cloning tool to avoid this chang during the movement of the tool on the image?

    Very grateful for an answer

    Anders

    It is possible that your Source region is quite different from the target area that the Clone tool is not the most effective use.

    Another reason is that you have put a sample of Clone of hard edge.

    I suggest you use the Spot Healing Brush tool to remove dust spots and see if that solves the problem.

  • How can I change the scale when you measure the distance?

    When you measure a distance of 20 m on the pdr-drawing tool says 10 cm measurement. How can I change the scale? The notice said it's possible, but I don't know how I do

    Hi Bandreason,

    How to change you can visit this link: Adobe Acrobat x: change the measurement scale. ROCKY MOUNTAIN TRAINING blog document is for mac but option is the same.

    Kind regards

    Ajlan Huda.

  • Script to change the element using screen orientation does not not on Dev Alpha in Portrait mode

    OK, so I wanted to update my application WebWorks Testing (https://github.com/SCrid2000/WebWorks-Testing) to make it easier to test webworks apps for the difference in screen resolution between the Alpha of Dev and the 10 next of BlackBerry.

    Basically, instead of opening your html, js and css files directly in the test application, the update would be to open your files in an iframe in the app. The iframe will resize itself based on the orientation of the device.

    The javascript function looks like this:

    function displayCurrentOrientation() {
    
        if (window.orientation === 0) {
            document.getElementById("currentOrientation").width = '1280px';
            document.getElementById("currentOrientation").height = '720px';
            return false;
        }
        if (window.orientation === 90) {
            document.getElementById("currentOrientation").width = '720px';
            document.getElementById("currentOrientation").height = '1280px';
            return false;
        }
        if (window.orientation === 180) {
            document.getElementById("currentOrientation").width = '1280px';
            document.getElementById("currentOrientation").height = '720px';
            return false;
        }
        if (window.orientation === -90) {
            document.getElementById("currentOrientation").width = '720px';
            document.getElementById("currentOrientation").height = '1280px';
            return false;
        }
    }
    

    Now it works just perfect on the PlayBook (but of course, this isn't much help for the screening of the BB10)

    However, on the Dev Alpha it ONLY works in the LANDSCAPE; in other words, if the application is launched in the landscape, the iframe rezises and everything is just perfect. If the test application is started in portrait mode, the iframe is still resized to the size of portrait.

    Anyone have any suggestions for what I'm doing wrong? I am quite at a loss here (and since this is a free application and open source, I'm not too motivated to spend another couple hours trying to fix lol).

    Thank you.

    Shane

    Nevermind, turns out it only is not yet supported by BB10.

  • Change the scale when you print a booklet

    I am trying to print a booklet, but the scale is too small. Any suggestions?

    Hello lennyd6515453,

    Could you please let me know which version of reader you use.

    You can see the below mentioned KB doc for the same link:

    Scale or resizing of the printed pages. Acrobat, Reader

    Let me know if this helps.

    Kind regards

    Ana Maria

  • IDCS4 - place images at the scale of size or predetermined batch

    I've created 6 images in Photoshop that must be placed in the code.

    I placed the images on the page, but they are not the same size.

    I know that I can perform a proportional scale when pointing black arrow on a corner, pressing SHIFT and then dragging.

    I tried scaling of images placed by selecting all and making the make shift drag on a corner, but it is only changing the image in the foreground.

    How can I select images all places and scaling in proportion to the need?

    Thank you

    Use the free transform tool.

    Bob

  • Images are the scale is no longer with (img {max-width: 100% ;}) css from the 34.0.5 in firefox update, it still works fine in IE and chrome.})

    My site was working fine up until firefox updated 34.0.5. Now the images will not scale to fit the box more. I use flexbox so that the site is changing to adapt to the size of the browser. In css, I set img {max-width: 100% ;} and this would make the jpg file size automatically to fit the area they were in, but no more than Mozilla really screwed up this with updated 34.0.5.} My site still works fine with IE and Chrome, but 70% of my web traffic using firefox so I would really like this to work in firefox.
    Any help is greatly appreciated!

    I work by setting a special parameter in CSS for the images that I needed to scale and then I have it referenced by SPAN for each img in HTML, not quite how I wanted it to work since now images filling the box even with monitors really big format, which means that they could now be blurred on a 4 k monitor but firefox left me no choice. Looks like I have going to aid in future chrome like firefox really shit the bed on this 34.0.5 updated

  • The resolution of screen automatically changes

    When I go on my computer after unlocking it, the screen resolution changes automatically.   Without too many problems, how can I lock the appropriate report and did not keep to reset?

    Just in case people always have a problem with this problem, pls here's a solution that worked for me...

    I spent the last month trying to solve this problem, and "youemailme" (another thread here) had the correct solution for me! And so Simple!

    I noticed on Blogs that this problem has existed for at least Win98 is not your computer or your operating system.

    The question seems to be programs in your Menu has a different screen resolution to set startup, thereby causing the screen resolution change when you start your computer. This isn't a MicroSoft program error, but rather a question of "settings".

    With me, what worked were 2 things:

    (1) perform the 'clean boot process' as advised by many to determine which granted software was causing the problem... and then.

    (2) right click on the name of the program (as discovered in above) 'problem' in the Start Menu > properties > compatibility.  For some reason, there is an option to "run in 640 x 480 screen resolution", which has been verified.  This program was in the startup folder and the cause of the problem.  Then unchecked the resolution box. No problem.

    In my view, there are a large number of people dealing with this exact problem. I hope that this process of step 2 could solve their problems.

    (ps, just thinking about it now, you might not even bother with the 'clean boot process' but simply go through all your programs in your Start Menu and run the 2nd step explained above. Should work?)

    See you soon

    Stephen

  • Using images from the library when you make apps phone in the AIR

    Gidday guys

    A lot of tutorials I get their images by integration practice at phone apps and put these images in the assets folder.

    I wonder - is it not OK to just use pictures and symbols in your Flash Pro library?

    I'm not referring to splashscreens and icons - rather the images that make up the functionality of the application.

    I thought that maybe something to do with providing many images for res' screen is different, but I plan on 640 x 960 and help design...

    stage.scaleMode = StageScaleMode.SHOW_ALL;

    .. .to take care of different resolutions.

    Thanks for your help.

    Yes, it's ok and other than the possible benefits of Organization (and a slight delay when loading), there is no advantage using imported bitmaps vs. loading.

  • How i: swap image in the background when I the substitution of CSS for the div

    HI: Let's see if I can explain this delema correctly:

    Objective: I want to hover over the items of the main menu menu spry and the background image of the container to change

    Catch: I use a model and have pictures of different background on every page, so I had to add a CSS rule inline for container bg image that replaces the model.

    Now I want the background image to change when I fly over the main menu items

    any ideas?

    site can be seen at www.summitcreekcapital.com

    Thank you, Nancy

    I see no real need to change the style sheet for something as mundane as the change of image of bg.  Here's an alternative:

    (1) add this to the top of your pages just before the closing tag:


    (2) then modify your menu items to add an onmouseover event that calls the function "newbg()", with a memorable classname as an appropriate setting for each menu item, like this:

  • firm_overview.html" onmouseover="newbg('foverview')">FIRM OVERVIEW
  • firm_team.html" onmouseover="newbg('mteam')">MANAGEMENT TEAM
  • code.pdf" target="_blank" onmouseover="newbg('cethics')">CODE OF ETHICS
  • Please note my classnames have been designed to reflect the text of the link, like "Overview of the firm"-> "foverview" rather that imagename that you will use for the bg, so in the future, if you decide to change this image, classname will always make sense for that link!

    (3) and then in a named "bgimages.css" external style sheet that I put in a folder /css/ (but you are free to rename all of these paths, filenames etc.)

    put these:

    .oneColLiqCtrHdr #container.foverview {
    

    Background: url (.. / pic01.jpg);
    }

    .oneColLiqCtrHdr #container.mteam{
    

    Background: url (.. / pic03.jpg);
    }

    .oneColLiqCtrHdr #container.cethics{
    

    Background: url (.. / pic02.jpg);
    }

    Change the images and paths as needed of course. As always, the path is always relative to the location of the css file.

    (4) and finally, in an external js file name "bgSwitcher.js" which I put it in a folder/js /, paste this:

    function newbg (classnm) {}

    var d = document;

    If (! d.getElementById) return;

    var c = d.getElementById ('container');

    If (! c) return;

    c.className = classnm;

    }

    Hope that all of the senses.  If I left you confused at any stage, just let me know.

    --  
    
    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • How to crop images outside the canvas when registering as a bitmap?

    Hello world.

    I worked on a design of DVD.  I have a picture of the face of a person on the entire CD.  The reversal of the image outside the canvas.  However, I made a rectangle along the edges and then used a clipping mask to visually remove the overflow.

    When I go on save the image as a .png or a .tiff or any type of bitmap image I always save a transparent part where the spill.

    How can I HAVE me to stop this?  I want to record only what images are inside the canvas.  Is there a predefined or preference setting I'm missing?

    Thank you!

    -Drew

    In the export dialog boxes there is the possibility of using work plans, check this option.

  • Pinned object goes behind the images and the text when scrolling

    Hey guys,.

    Im having a problem with my pinned Center the menu at the top of my page. Whenever I scroll to the top, the menu goes behind the images and the texts that are underneath. I tried to fixed by sending the menu at the top layer (arrange > send up), but nothing helped.

    How I fixed it?

    Thank you!

    Hello

    You have the Menu added to the master page? If yes then in order to resolve this problem you must add the Menu separately to all pages.

    Master page items may be brought forward on the pages. You can use cut and paste in place function paste the Menu on all pages separately.

    I hope this helps.

    Kind regards

    Sachin

  • How to change direction to leftToRight topToBottom presentation, if the screen orientation changes from portrait mode to landscape

    Hi, I want to change direction in container of topToBottom to leftToRight so change your screen from portrait to landscape orientation.

    How to do this?

    I'm already using this

    on QML

    attachedObjects:]
    {OrientationHandler}
    onOrientationAboutToChange: {}
    If (direction == UIOrientation.Landscape) {}
    myContainer.layout =... / / to leftToRight
    } else {}
    myContainer.layout =... / / to topToBottom
    }
    }
    }
    ]

    I do not know how to set the new value

    Thank you

    Hello

    Use this code below:

    attachedObjects:]
    {OrientationHandler}
    onOrientationAboutToChange: {}
    If (direction == UIOrientation.Landscape) {}
             myContainer.layout.orientation = LayoutOrientation.LeftToRight / / landscape
    } else {}
             myContainer.layout.orientation = LayoutOrientation.TopToBottom / / portrait
    }
    }
    }
    ]

    Thank you

Maybe you are looking for

  • El capitan and photoshop

    does anyone know if El Capitan will be the effect on an older version of Photoshop cs6. Don't want to update until I know for sure. Thank you

  • Virus? MacBook PRO early 2013

    While on Google, get a popup/audio saying I have a virus, should call this number. I do not read the popup, I try to X out but cannot X out of popup or tab, have to force quit to stop! Has happened twice today. 2.7 GHz Intel Core i7 processor

  • podcasts are suddenly not updated

    https://iTunes.Apple.com/us/podcast/Vista-Community-Church-podcast/id1030197855 Podcasts have not updated since December 7. I added 2 episodes that do not show iTunes. (one on 6 December, another December 7, as seen in the below RSS feedburner) Using

  • Text in the middle of the container

    {Of container                           layout: {StackLayout}direction: LayoutOrientation.LeftToRight         }background: Color.create ("#ffff8400")horizontalAlignment: P{Label                             Text located with the dynamic translation an

  • can not ctreate new folder windows 7

    Windows does not create a new folder, when the new folder is selected.  New command has no folder option.  I need to copy an existing folder in the folder, I want that he created, delete all files and change the file name to get the same result.  Y a