Integration of ImageView and Qimage

A large part of this issue has been discussed here:

http://supportforums.BlackBerry.com/T5/Cascades-development/imageView-Cascades-noob-question/TD-p/17...

Basically, the suggested correct way of converting a QImage ImageView is this one:

PixelBufferData pbd (PixelBufferData::RGBA_PRE,yourQImage.width(),yourQImage.height(),yourQImage.width(),yourQImage.bits());

yourImageView->setImage(pbd);

Then there was someone by specifying the format must be probably BGR instead of RGB, which could be done with OpenGL or like this:

image.rgbSwapped();

Here is my code I have a problem with:

PixelBufferData pbd(PixelBufferData::RGBA_PRE, orgPattern.width(), orgPattern.height(),  orgPattern.width(),  orgPattern.rgbSwapped().bits());
m_patternFrame->setImage(pbd);

orgPattern is a QImage loaded from a file path that is sure to exist. m_patternFrame is a pointer to the ImageView.

I know that m_patternFrame is a pointer valid because if I call its method setImageSource by the way I created the QImage, it displays this image. But when I run this code, it is printed in the console:

Context: Cannot find the node target with id %d 906.

Sometimes the number is different. When I tried again, it was 563. The application is not cursh or gel, but nothing happens with the framework, it is still empty.

Can anyone provide any help with this problem?

Thanks for starting a new thread and referring to another thread.  Allows us to provide you with a timely response.

Before dive us into this too far, what is the width and height?  (We are within the limits, I guess?)

And can you try to make the setImage in 2 steps: first to create the Image of the PDB rather than implicitly and test! image.isNull)

Stuart

Tags: BlackBerry Developers

Similar Questions

  • problems aligning ImageView and label

    Hello

    I have a container with LayoutOrientation.LeftToRight guidance.

    Inside I just an ImageView and etiquette. When I try to organize their

    that the icon and the text display on the same line, I have problems.

    Here's how it looks by default (without any filler etc.):

    (the container - green - perhaps a bit more space below)

    the 'text' is not visible on this image more).

    I think that all see you my problem. The picture starts to the right of the

    edge of the container (it is aligned with its upper part), so that there is a

    space between the label and the top edge of the container.

    I want the image and name appear seemingly on the same horizontal

    line. How can I achieve this?

    PS if I put the container topPadding to something, then the two components

    go down simultaneously and yet they will not appear on the same line.

    Thank you.

    I think I found the solution by setting verticalAlignment: VerticalAlignment.Center
    to the ImageView for example.

  • ImageView and the reversal!

    Hello

    I want to manage the role more (by CSS if possible) on the ImageView component (for example change the background color of the ImageView if he doesn't roll over).

    I have try several things without success.

    So, if you have an idea.

    Thanks in advance.

    Kind regards

    Fabrice

    It would be useful to see what you've tried. But here's a sample.

    There is no much you can do with ImageView and CSS beyond image adjustment and no matter what styles are in the node. If you want to set a border or background color, then you need to place the ImageView in some other layout container and set a few styles on that. The contents of my file test.css (below) sets the opacity of the ImageView to 75% to the overview and a border on the StackPane which is the root of my scene (as you can see from the code). The border is framed on the edges, so you can see more easily.

    view image {-fx-image: url (https://duke.kenai.com/wave/Wave.png); }

    picture view: hover {-fx-opacity: 75% ;}}

    .root:hover {-fx-border-color: Red; - fx-border-inserts: 5; - fx-border-width: 3 ;}}

    @Override
    public void start (point primaryStage) bird Exception {}
    ImageView imageView = new ImageView();
    imageView.setFitHeight (500);
    imageView.setFitWidth (300);
    Scene = new scene (new StackPane (imageView));
    scene.getStylesheets().add("/fxtest/test.css");
    primaryStage.setScene (scene);
    primaryStage.show ();
    }

    Oh, another thing. You won't get hover on the transparent areas of the image. So it is better to put the ImageView into a layout container and set the styles you want on the layout container.

  • Kuler integration with Photoshop and Flash?

    It would be nice to see some kuler integration with Photoshop and Flash. I love Illustrator Panel and want to Photoshop and Flash could use it. Unfortunately, the Flash has no support of ESA (probably a legacy of Macromedia) and would require an update to do so. Photoshop has full support ESA. A panel kuler to Photoshop is exactly what people need. This time, I save the swatches and then open them in Photoshop, without successful integration. Implementation of the Illustrator is great. Kuler will have a panel of Photoshop?

    Hello, thanks for the post. For now, check out the Flash CS3 Panel created by Ben Pritchard (Pixelfumes): http://pixelfumes.blogspot.com/2007/06/flash-cs3-kuler-panel-updates.html
    What type of project do you use kuler for?
    Saami

  • ImageView and pan / zoom

    Hi all

    I'm in a situation where I need to use a control to display an image and it pan on the trail. Also this control will have to be able to zoom in the image to pinch, but I was informed that no event is pinch cascading far, so let's focus on the element of pan. When the user touches the ImageView (on contact) should be able to move when the finger moves. I know that ImageView does not support this feature, but what steps do I take to integrate it?

    Let's say I have loaded the image of a path and I have a QImage stored somewhere I used its data to display an Image in ImageView. How to apply view ImageView? Or if you can't, how can we establish an image control, which can pan (for now) and zoom (in the future)? Basically, I'm looking for an equivalent of Cascades of this example of feature Native called gestures: https://developer.blackberry.com/native/sampleapps/.

    I don't need all the features of this example. I need information how to move an image in a cascade control.

    Thanks in advance.

    Yes, you can place an item in a container smaller than the size of the element but the container must be done with scrolling (scrollMode: ScrollMode.Both) so that it knows to allow the biggest child element to exceed his limits.

    For the ferry, just take a look at the example of PullMyBeard, it shows how to listen for events from key and move an ImageView with tactile movement:

    https://developer.BlackBerry.com/Cascades/sampleapps/

    If you have problems of application please let us know.

  • All content tiles missing and integrated PDF reader and password manager no longer works after update to 34.0

    Hello
    After that I updated to 34.0 on OSX 10.9.5 (auto update comprehensive), I noticed that all of the content of the tile is missing. Before the update, I have seen a lot of tiles when I open a new tab. Even after a few navigation, no content appears (I see only an array of blank tiles). I went between white classic, bright, cooler. No effect.

    In addition, integrated in the viewer PDF does not work. All the time I click on the pdf link, I see the window to download the PDF with the title "enter the name of the file to save on...» ». Before the update, PDF Viewer has not worked, no problem. After that I noticed the problem, I checked that the preferences-> requests and confirmed that the action to the 'Portable Document Format (PDF)' content type is set to "Preview in Firefox".

    In addition, Manager of integrated password also stopped working. He remembers no new password. It provides no password already known on the site where he provided automatically the account and the password before the update. I checked the preferences-> Security-> saved passwords. There are a lot of passwords to remember (remember before the update).

    I re - install the firefox manually. It does not help.

    Can someone help me? Is there any information I can provide to sort my problem?

    You can check for problems with preferences.

    Delete possible user.js and files numbered prefs-# .js and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

    You can use this button to go to the Firefox profile folder currently in use:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)

    Create a new profile as a test to see if your profile is the source of the problem.

    See "create a profile":

    If the new profile works then you can transfer files from a profile already used in the new profile, but be careful not to copy files corrupted to avoid transporting more problems.

  • Is it possible to remove an integrated MDM? and how? (iPad)

    I have an iPad that I received from a school, but it still has restrictions on what I can't mess with. all restrictions are greyish and unresponsive to a tap.

    The iCloud account that uses the school is still attached, I cannot sign out of it because find my IPad requires the password to iCloud

    On behalf of iCloud from school, which I did not.

    Remove the iCloud account would give me access restrictions? When I go to the limit he didn't ask me for a password at all, all restrictions are just does not respond.

    Also an integrated MDM using the iPad, I can't understand how to remove it because I have the feeling that the profile of MDM may have stopped me to have the opportunity to change the Restrictions.

    I wanted to ask this question because I believe that restrictions stop download 17 + apps like Kik appreciation.

    How did you get this device to a school? If the school still has control of the device, which it follows from what you say here, then there is nothing you can do about it. However, if you bought this from school second hand, then you will need to contact them about the removal of the device of the iCloud account. Once they remove it, and then you would be able to restore the device, which would remove management.

  • Manual integration of MS2010 and VS2010 does not

    Hello

    This is a newbie question, but I have some difficulty to get Visual Studio 2010 to integrate with Measurement Studio 2010. I tried to follow the instructions to manually integrate MS vs on the following page:

    http://digital.NI.com/public.nsf/allkb/ACFFB3E03B97D0A8862575ED0058A7B1

    and was able to make the first step in the execution of devenv/setup to the VS command prompt. However, when I tried to do the second step of the choice of editing OR to add to the Toolbox, the only thing in the assemblies/current folder is NationalInstruments.Common.Native.dll, which rejects the Visual Studio with the error not be a .NET module.

    I don't know what I should see in the assemblies/current folder, or how to make this second phase of work.

    Any ideas/suggestions would be greatly appreciated.

    Thank you

    Ana

    Hey Ana,

    Measurement Studio 2010 supports the integration of Visual Studio 2010, so it shouldn't be necessary to do the manual integration.

    When you run Setup for Measurement Studio, you will get a screen that allows to select the features you want to install. You will see a heading "Support for Visual Studio 2010. Make sure you click on the button disk bit beside him and select this option to install this feature. If you expand the category, you will see also the linguistic support .NET Framework 4.0 is a subcategory, and within that category, you will see Visual Studio integration. Make sure that all of these items are selected to be installed (see a small disc with a white icon).

    I suspect that what has happened is Measurement Studio was installed without Visual Studio support or .NET Framework language support - which would explain why Measurement Studio has not been properly integrated, and why you didn't see assemblies .NET into this folder. I think that to re-run the installer and check these settings should solve the problem. Let us know if you need help more!

  • Numerical integration of acceleration and speed

    I control a differential robot mounted by two motors. I use encoders to detect the movement of the robot. I kinematic equations for the linear and angular speed of the robot using wheel from coders speed reading. Now, my problem is how to make digital integrations for speeds resulted.

    I need to know a method to do the numercal integration.

    Hello.  I guess you're wanting to integrate the speed to track the position of your robot?  LabVIEW has Integration & differentiation screw that should do the job.  In addition, depending on the configuration of your robot, you can calculate directly measured the count position of the encoder based on the resolution of the encoder and the diameter of the wheel.  I hope this helps!

  • Battery on the Controller PERC 6 / i integrated Poweredge R900 and 2950.

    Hi, we have this error below Poweredge R900 and Poweredge 2950 for 4 days now, I hope that he will be gone after 7 days (such as by Maximum learning delay)

    Battery on the Controller PERC 6 / i integrated:

    Name battery 0
    Degraded state
    Loan of State capacity
    Learn the State duly
    Next time learn 0 hours
    Learn 7 days 0 hours maximum
    Learn the Auto Mode

    In case the error continues after 7 days, is there any solution to this? or replace the battery if error remains.

    I had been searching for the right part No. battery so that we can order in advance, thank you for giving the battery part No. for Poweredge R900 and 2950 Controller PERC 6 / i integrated.

    Thank you much in advance.

    concerning

    Rais info is stored on the discs should not be a problem

    R900 page 84 support.dell.com/.../XK9460D.pdf

    2950 page 74 support.dell.com/.../hom.pdf

  • Integration of Facebook and Twitter

    Someone tell me how I integrate facebook and twitter into my application

    provide your suggesstion as soon as possible

    public class Home extends UiApplication
    {
        public static void main(String[] args)
        {
            Home app = new Home();
            app.enterEventDispatcher();
        }
    
        public Home()
        {
            pushScreen(new TwitterAPIMERIMOauthSample());
        }
    
    }
    
    public class TwitterAPIMERIMOauthSample extends MainScreen
    {
        private final String CONSUMER_KEY = "";
        private final String CONSUMER_SECRET = "";
        private final String CALLBACK_URL = "";
    
        public TwitterAPIMERIMOauthSample()
        {
            super(VERTICAL_SCROLL);
            setTitle("Twitter Demo");
            BrowserField browserField = new BrowserField();
            add(browserField);
            OAuthDialogWrapper pageWrapper = new BrowserFieldOAuthDialogWrapper(browserField);
            pageWrapper.setConsumerKey(CONSUMER_KEY);
            pageWrapper.setConsumerSecret(CONSUMER_SECRET);
            pageWrapper.setCallbackUrl(CALLBACK_URL);
            pageWrapper.login();
        }
    }
    
    public final class BrowserFieldOAuthDialogWrapper extends OAuthDialogWrapper
    {
        private BrowserField browserField;
        public BrowserFieldOAuthDialogWrapper(BrowserField browserField,String consumerKey, String consumerSecret, String callbackUrl,OAuthDialogListener oauthListener)
        {
            super(consumerKey, consumerSecret, callbackUrl, oauthListener);
            if (browserField == null)
            {
                throw new IllegalArgumentException("BrowserField must not be null.");
            }
            this.browserField = browserField;
            this.browserField.addListener(new BrowserFieldListenerOAuth());
        }
    
        public BrowserFieldOAuthDialogWrapper(BrowserField browserField)
        {
            this(browserField, null, null, null, null);
        }
    
        protected void loadUrl(String url)
        {
            browserField.requestContent(url);
            System.out.println("111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"+ url);
        }
    
        protected void loadHTML(String htmlContent)
        {
            browserField.displayContent(htmlContent, callbackUrl);
            System.out.println("22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222"+ htmlContent);
        }
    
        private class BrowserFieldListenerOAuth extends BrowserFieldListener
        {
            public void documentLoaded(BrowserField browserField, Document document)throws Exception
                {
                    trackUrl(browserField.getDocumentUrl());
                    System.out.println("33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333"+ browserField.getDocumentUrl());
                }
        }
    }
    

    HII All,

    I did twitter integration in blackberry but I got two times login

    Can someone help me how to remove the connection twice problem

    Above here is my code for the integration of twitter

    		   
  • Integration of ISE and SIEM

    Hello

    One of the major concerns about security solutions is the way in which they interact. In particular, ISE is compatible with most of the body available today, as indicated by Cisco (http://www.cisco.com/en/US/prod/vpndevc/ecosystem.html).

    In my particular case, I want to integrate with ArcSight ISE.

    For ArcSight properly analyze syslog messages that sends the ISE, you need to install/configure a smartconnector ISE.

    However, what Miss me is how ArcSight tells ISE to take specific measures on users/devices that are involved in a network attack.

    Please visit: http://www.cisco.com/en/US/prod/collateral/vpndevc/ps5712/ps11640/at_a_glance_c45-728401.pdf

    SIEM/TD partners may utilize ISE as a conduit for taking mitigation actions within the Cisco network infrastructure. SIEM/TD platforms can instruct ISE to undertake quarantine or access-block actions on users and/or device based on ISE policies that have been defined for such actions.

    Thank you!

    Octavian

    There is no such docs available so far for ArcSight to ISE integration. I have also found that these two links:

    http://www.Cisco.com/c/dam/en/us/products/collateral/security/identity-Services-engine/at_a_glance_c45-728401.PDF

    http://www.Cisco.com/c/dam/en/us/solutions/enterprise-networks/context-aware-mobility-solution/profile_arcsight_c07-538803.PDF

  • integration of TMS and Exchange

    Hi all

    I had planned to integrate Exchange with tms instead of ctsman.

    Could you help me on an integration guide, as well as with your advice.

    Thank you.

    We have a white paper that helps guide you in the management of expectations and planning of such failover.  See https://supportforums.cisco.com/docs/DOC-40301

    For more details on how to proceed with the installation, make sure you please to refer to documents TMSXE and TMS installation.  Material above is a supplement to the people and does not duplicate the information contained in the classic installation documents.

    Materials TMSXE - http://www.cisco.com/c/en/us/support/conferencing/telepresence-managemen...

  • Question about the integration of CRM and change on Instance of Salesforce

    I just said that Salesforce is making a change in a few months, which would bring our data out of the instance, they refer to "na2" and on a yet to be announced the instance. The only change on the side of Salesforce would be a new URL associated with all our Salesforce pages. Instead of "https://na.2." ((The) rest of URL) .com ', the new URL might be'https://()new name of the Instance). (Rest_of_URL).com ". I don't think it would have an impact on our integration, but I just wanted to see if there was any potential problems that I'm on. Thanks for the help!

    Hi all

    We have seen customers using several marketing automation systems (including Eloqua) who got this kind of news to SFDC and I have seen no effect when change happens and do not update the credentials, etc. (unless they had regular password changes or something already).

    Best,
    Lauren

  • Integration of Jaspersoft and apex

    Hello

    everyone to indicate a documentation on the integration between products APEX and Jaspersoft BI?

    Or another free product for the generation of reports

    Thank you

    I found the answer on the site of Opal-consulting.

Maybe you are looking for