How to size of ImageView using scaling property

Hello

I use Imageview to display images that are active, I want to resize them, I tried to use image resize using the scale in c ++. I am not able to do, how to do?

Is it possible outside the scaling of method?

Concerning

Rakesh Shankar.P

Quick and dirty example:

ImageView * iv = new ImageView();
iv->setImageSource(QUrl("asset:///fooo.png"));
iv->setScalingMethod(ScalingMethod::AspectFill);
iv->setPreferredSize(768, 1024);

In practice, you'll want to load the image using ImageTracker, wait for the signal that it has loaded, and then set Image on imageview. ImageTracker you can also read the dimensions of the Image.

Tags: BlackBerry Developers

Similar Questions

  • How to change the value of the array element by using the property node

    Hello all :)

    IM using a table in the drop-down list box. the size of the array is not fixed.

    I want property strings [] from the drop-down list box to enter text in selection, but since I placed it inside the table im unable to use this property.

    I used 'arrayelem' reference property and property node connected to it but got no strings [] in the selection.

    so is it possible that I can use property strings]


  • ImageView ScrollView scaling

    Hi all, my picture is much bigger than the size of the screen and is the scale good onPinchUpdated signal (), but after that it's normal size. How correct scale in the ScrollView? Because without ScrollView, it works fine. Here is my code:

    ScrollView {
      id: myScroll
      ImageView {
        id: myImage
        property double initialScale: 1.0
        property double scaleFactor: 0.8
        imageSource: "asset:///images/bigpic.jpg"
        gestureHandlers: [
          PinchHandler {
            onPinchUpdated: {
              myImage.scaleX = myImage.initialScale + ((event.pinchRatio - 1) * myImage.scaleFactor);
              myImage.scaleY = myImage.initialScale + ((event.pinchRatio - 1) * myImage.scaleFactor);
             }
          }
        ]
      }
      scrollViewProperties {
          ScrollMode: ScrollMode.Both
      }
    }
    

    You can use the pinchToZoomEnabled property... and let the scaling to the BONE

     ScrollView {
                scrollViewProperties {
                    scrollMode: ScrollMode.Both
                    pinchToZoomEnabled: true
    
                }
    
    .........................
    
    }
    
  • How to end a loop using hits/keypress in applescript?

    the value dFolder to '~/Desktop/screencapture/ '.

    the shell script ("mkdir - p" & dFolder)

    the value I 0

    the value x for the shell script 'date + %m %d - hour %M %S %Y' as string

    repeat 10 times

    define a shell script ("screencapture gif t - x" & dFolder & i & x & ".gif") as string

    Try

    say application "Image events".

    the value this_image to Open one

    this_image scale size 10

    Save this_image

    end say

    end try

    delay 3

    the value i to i + 1

    end Repeat


    Sample applescript with a screencapturing loop.

    Problem: How to end the loop using the key combination or keycode?

    Problem: How to end the loop using the key combination or keycode?

  • How reduce size photos in Aperture?

    How reduce size photos in Aperture?

    Hi, I use export to reduce the size of the photo.
    Export Version > Edit > align with...

    Please note, opening will remember the last export, so export again in the original format, you have to restore.

    ARO

    Kalevi

  • Would it not correct to say that the PCI-6110 can be set to 'redeclenchables' but the PXI-6115 module cannot use this property?

    Would it not correct to say that the PCI-6110 can be set to 'redeclenchables' but the PXI-6115 module cannot use this property?  If Yes, where is it documented the series cards can do trigger?  For example, is it possible to configure the trigger on the PXI-6124?

    Hi Joel_Neptune,

    The PCI-6110 and other materials as the PXI-6115 S series and SMU-6124 do not natively support NOR-DAQmx analog input alarm. However, you can use one of the generalist counters/timers of the Council to generate a reenclenchees pulse train, then use this as the sample clock pulse train. This transportation example shows how:

    LabVIEW\examples\DAQmx\Synchronization\Multi-Function.llb\Multi-Function-Ctr Retrigg Pulse Train generation for the Clock.vi sample

    In addition, the new material of the simultaneous sampling X series are supported trigger analog input without using a separate task of counters/timers.

    Brad

  • How to get the reference or the property of a member in OOP node?

    Hello world

    Is it possible to get the referral of a member in OOP?

    After you have created a class and an insert, a member of control in the cluster, I conclude that, when a right click on it, there is no element of "creat-> reference" or "create-> property node?

    So, how to get the reference or the property of a member in OOP node?

    Hello

    There are a few reasons that you can't do what you want to do:

    1 al ' LVOOP ordinary (as opposed to the DVRS in LabVIEW 2009, or some other framework / pattern design) are items of LabVIEW by value, as a cluster and therefore you can not create a reference to a class.

    2. a control of the object (this is what you get when you drop an object on a façade) is a 'black box' because you cannot look inside. This is to support the idea that the class data private. This means that you can't get a reference to all internal control when its on a façade

    3. check the references are valid only for the controls in the Panel before and therefore any class (or other piece of data of LabVIEW) on a wire / shift register / constant / anywhere other that of the façade, will have only the data portion of the available control.

    To access the items within a class, you create the accessor screws (you can create them easily by right-clicking a class (or the folder within the class) in the project tree and selecting New-> VI to access data members.) This VI would at least have a unbundle / bundle node (depending on whether its read/write) and could, if you have many more features such as range checking. You can use this VI whenever you want to read the Member your interested.

    I hope this helps.

    Shaun

  • What is Belarc Advisor and how to get it and use it?

    What is Belarc Advisor and how to get it and use it?

    Don't try real hard to figure that one out yourself, huh? Heh

    http://www.Google.com/search?q=what+is+Belarc+Advisor

    Search example:

    The best place, probably, for more information about the application/utility is probably:
    http://www.Belarc.com/free_download.html

    More directly:

    The Belarc Advisor generates a detailed profile of your installed software and hardware, network inventory, missing of patches Microsoft anti-virus status, safety criteria and displays the results in your Web browser. All of your PC profile information is kept private on your PC and is not sent to any web server.

    • Operating systems: runs on Windows 7, 2008 R2, Vista, 2008, 2003, XP, 2000, NT 4, Me, 98 and 95. 32-bit and 64-bit Windows are supported.
    • Browsers: works on Internet Explorer, Firefox, Safari, Opera and many others.
    • File size: 3062 KB.
    • License: the license associated with this product allows for free personal use. Use on multiple computers in a business, educational, military or Government facility is prohibited. See the license agreement for more details.


    DOWNLOAD TIPS:

    • Click the click here to download .
    • Click run in the file download of Internet Explorer pop up.
    • Belarc Advisor automatically install, build a profile of your hardware and software and display in your Web browser.
  • How to take a screenshot using Windows 7 screen

    I'm using Windows 7 Home Edition. I want to take a screenshot of the homepage of MSN in 31ish Firefox and Internet Explore 11ish to show the difference that I see. MSN.com Firefox display is so bad on my PC that I had to go home pages at http://www.twcc.com/ . I prefer to use MSN.com as I always until they came out with their "New and improved" MSN.com.

    So, if someone can tell me how to take a screenshot using Firefox 31ish MSN.com Web page, I would appreciate the help. Then I'll go to forums on how to do the same thing with the Internet Explorer browser. Then, I'll post the two shots in the Mozilla's Support forums to see if I can find how do Firefox works better for me. Thank you.

    The current versions of Firefox have a built-in feature to take a screenshot as the one of the commands on the toolbar Developer (SHIFT + F2; Firefox 3-bar menu button > developer or tools > Web Developer).

    You can use it if you need only a screenshot sometimes because you must use a command line and can't click a button or use the context menu.

    • A quick way to save a screenshot is to press the 's', and then press the tab key to accept the suggestion of AutoComplete screenshot.
    • You can press the F1 key for context-sensitive help with suggestions where you can select an entry with cursor key and press Tab to copy the entry in the command line
    • You can type a space and two hyphens (-) to see the list of command options and use the Tab key to copy the selected highlighted (for example, fullpage or Clipboard) in the command line entry.

    Note that some commands have their own options and you can type two hyphens at once to see additional options.

    • The default file name is "Screen Shot yyyy-mm-dd to HH.MM.SS.png" in the download directory.
    • For more help, use this command: help the screenshot
  • How to force firefox to use internal device fonts not Web page fonts.

    How to force firefox to use internal device fonts not Web page fonts.

    You can set browser.display.use_document_fonts to 0 in: config. Note that this will remove the style of sites and may result in websites being unreadable.

  • How do I continue to use my mini v1 after iOS 10?

    I won't throw my mini v1. How do I continue to use it after iOS 10?

    Hello

    If you have an iphone / iPad, if it will not run the new ios 10 they will work ok on the latest ios Update 9 or below.

    See you soon

    Brian

  • How can I make Firefox use another version of the installed Java runtime?

    For purposes of development, I have several versions of the Java runtime on my 64 bit Windows 7 computer. I try to keep the number of JDK and JRE installation to a minimum and I want Firefox to use JRE 1.7.0_21 (32 bit) because this happened with a version of JDK, I am forced to use another application.

    Firefox however use JRE 1.6.0_31 and is correctly reported as non-secure. It offers me the upgrade option, but I don't want to download and install a different JRE since I already said 1.7.0_21 installed JRE. I would prefer very just to be able to point Firefox so that JRE. I don't see an option to select a different JRE installed however.

    I tried to manually edit the file pluginreg.dat (I know, it says do not edit...) by changing the entries of JRE 1.6 and 1.7 of the JRE, but on reboot, my changes have been overwritten and was back at the old JRE. So I can't view some web sites (also company/internal) without having to change to any browsers.

    Please let me know how I can make Firefox use the already installed JRE 1.7.

    Firefox scans the registry to find the location of the plugins.
    If Firefox detects a plugin and not the other, then that means that the other Java plugin is not having a corresponding registry key.

    64-bit Windows:
    HKLM\Software\Wow6432Node\MozillaPlugins\@Java.com/JavaPlugin,version=XX.XX.XX
    32-bit Windows:
    HKLM\Software\MozillaPlugins\@Java.com/JavaPlugin,version=XX.XX.XX

  • A key panel full size can be used with I pad pro?

    A key panel full size can be used with I pad pro?

    Only if the keyboard is full-size using Bluetooth connectivity.

    I've not seen any portable keyboards, full length using Bluetooth, however.

    Most Bluetooth keyboards for tablets are made compact to be more ergonomicaaly designed with the size of the tablet.

    If you found or will find a full-size, keyboard full length that works with Bluetooth for iDevices and iPads, so this should work.

    Good luck!

  • How to change security issues using alternate email address

    How to change security issues using e-mail. That you send e-mail to?

    Forgotten security issues

    1. If you forgot the answers to your questions of security of Apple ID - Apple Support
    2. Apple ID - all about Apple ID security issues
    3. Contact Apple for assistance with the security of the Apple ID - Apple Support accounts
    4. Security issues

    If you don't have an e-mail address of relief already implemented, then you will need to call Apple (point 3) for repair.

  • After software update today, my password does not work.  My phone is now disabled.  I don't have a backup.  How can I start to use my phone again and not lose all my content?

    After software update today, my password does not work.  My phone is now disabled.  I don't have a backup.  How can I start to use my phone again and not lose all my content?  Help, please.

    You can not

Maybe you are looking for