HELP in drawing and adding captions to picture

Please forgive my English and my beginner skills. I am really new to QT, QPainter and graphics programming.

I develop the application snap2chat.  And I badly need help with drawing and add captions to Images.

I tried QPainter paint brushes in the picture and save it. But it's really slow. I also added onTouch event on the image and passed the localX and localY and this is the position that I also used for the QPainter to paint on and does not have the right position for painting too.

and also the image GET bluish when I start painting.

QImage theimage = QImage(imagePath);

    QPainter painter(&theimage);
    painter.setRenderHint(QPainter::Antialiasing, true);
    painter.setPen(QPen(Qt::transparent, 3, Qt::SolidLine, Qt::RoundCap)); // stroke
    painter.setBrush(QBrush(Qt::green, Qt::SolidPattern)); // fill
    painter.drawEllipse(x, y, 10, 10);

    //theimage.save(imagePath, "JPG"); // I also tried uncommenting this

    const bb::ImageData imageData = bb::ImageData::fromPixels(theimage.bits(), bb::PixelFormat::RGBX, theimage.width(), theimage.height(), theimage.bytesPerLine());

    m_image = bb::cascades::Image(imageData); // this is the image I show in the ImageView

Also drawing with QPainter texts it blocks with the reason for the QFontDatabase. I saw a solution in another thread to add this line , but nothing helped.

Any suggestions please?

I didn't know he jumped a dialogue... the alternative is to write the screen to a bitmap image and then save it, works with 10.0 api and does not require a permission to screen capture or guest

I wrote an example that shows how to do this.

https://github.com/slashkyle/Cascades-samples/tree/master/CaptureThis

Tags: BlackBerry Developers

Similar Questions

  • Need help with resizing and adding bleed to PDF

    Hey guys, I have a pdf file that is a size 6.5 x 8.357 bleed in and the editor wants the following:

    Cutting of the Page (including the purge) size: 7 5/8 (7.625) X 9 1/2

    Top, bottom, outside edge border purge: 1/4 "

    Inside the border of purge (spine): 3/8 "(. 3750)

    Reduce the Page size: 7 "X 9"

    Size of the work: located in a 7 "x 9" cut the page, it should be 3 / 16 "(. 1875) white border on the left outside or outside right side and 5/16" (. 3125) inside the border edge (spine).  Top and bottom borders of edge will be proportional (they will end up more large I think).

    So basically the original file will float in the middle of her bleeding listed above. Y at - it an easy way to do this in Adobe Acrobat Pro, or that I have to (finally) learn how to use InDesign?

    Thank you

    --J

    Although there is some capacity to enlarge pages and set the space around the page boxes in Acrobat 9 or X Pro, you really want to do in InDesign.

  • On the drawing and coloring in Adobe help animate

    Hello, I am new on using Adobe animate and I'm completely lost on how to use this program to draw and colorize my characters before starting to animate. It seems to be much easier to draw and color in Adobe Photoshop, because there I have useful functions such as the elliptical marquee, the magic wand (Animate has it but it never works for me), Blur Gaussian, burn, dodge tool, etc. to help with drawing and coloring, but Adobe animate seems to have none of that. I tried drawing with the tools available in Adobe animate but my drawing turns resembling chicken scratches. -_-; I don't mean to sound whiny, but I'm really confused on how to draw and color in this program.

    In addition, once I finished my drawing, the paint bucket tool doesn't seem to work at all for me, and I can't use the magic wand tool to select what I want to paint either. Here is a picture of my current project to animate CC and as you can see, it looks like a mess: http://i1294.photobucket.com/albums/b602/SonicKeyblade007/BRS%20Animate%20Help_zpszjeleftg .png

    I tried first of drawing in Photoshop and then import my drawing animate CC on my previous project, but I ran into issues that can be seen in this thread: confused on how to color in Adobe animate CC

    Thank you for your time.

    I think that your paint bucket tool does not work because you have different parts of the work on different layers, so most of your forms are not closed.  You can use the paint bucket to fill closed areas.

    Here's a super simple example:

    The form on the left is open, you cannot use the paint bucket to fill with color.  The right form is closed, so you pouvez use the paint bucket to fill with color.  Hope that helps.

    Also. you don't need the magic wand tool to select what you want to paint. Just make sure you have the correct layer selected.  The magic tool want is just for the selection of colors similar in bitmaps broken apart.

  • I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!

    Try asking in the forum Premiere Pro seems to be an Adobe first Pro Lab

  • CP8 Interactions and slides with audio and closed captions - doesn't work well - please help

    Well, I use cp8 on a 64-bit windows computer 8. I placed an interaction on a slide. I have also audio on this slide and closed captioning.

    When I get to the slide, the audio is not because the mere fact that the interaction is there made the slide one break to enter. The student should I click play on the Player bar to go, but which is not required on slides without interactions, so I don't like this solution. I could also make a slide on enter play Audio and choose the wav file, but then the subtitles are not displayed.

    So the question is, how do I slide automatically play the audio level of the blade without the student having to click on the play button to go? Slides with interactions should behave exactly like the other slides with objects/widgets on them. This automatic suspension thing is driving me crazy!

    Thank you

    Lori

    Lori, this is confusing! You're talking about one of the learning interactions included with Captivate? If Yes, which? My amazement is due to the fact that what you described, it is what has happened to the COP6: interaction paused to slide to the first image (I got a work around for audio). But given that CP7 interactions do not hang any slide, you will need to provide the break yourself. There are a few exceptions closely (games).

    Lilybiri

  • How to edit a jpeg file and add captions and save it again as a jpeg?

    I open a jpeg file in Acrobat Pro XI and edited the photo by adding captions. Once again, it has been saved in PDF format and when reopened all the legends where he.  I tried to save it as a jpeg and when repoened all legends have disappeared.  How can I save the file as a jpeg and have the legends show?

    Hi Firepros1,

    You try to export the file in PNG or TIFF instead of jpeg.

    Let me know if this helps.

    Kind regards

    ~ Dominique

  • What is the difference between the activation of remote desktop and adding a 'connection in network connections.

    What is the difference between the activation of remote desktop and adding a 'connection in network connections.

    Hi ChadCrowell,

    Remote Desktop connection allows remote control of your Windows XP Professional computer from another computer running Windows XP Professional or an earlier version of Windows.

    Reference: How to use the Windows XP Professional Remote Desktop feature?

    By creating an incoming connection, a computer can act as a remote access server is running Windows XP Professional, Windows 2000 Professional

    Reference: To make an incoming network connection

    Hope the helps of information.

  • PC guard freezing in youtube, onling games and trying to send pictures.

    I have windows xp home edition. PC guard freezing in youtube, onling games and trying to send pictures. help please.

    Norton is hopeless. Uninstall get something better. Its probably the cause!

  • How can I take ownership and permissions of my pictures back?

    I changed some security options in my hard disk in a folder that contained all my photographs now my pictures are coming up invalid. I think I change some parameters of onweship but I'm not really sure. After that I gave my hard drive a person to computer ammature and it changed some property settings too and nothing happened it just made worse because earlier I had figures a way how to retrieve it all the photo one by one, but now, it is also not woking. plelaseee help me. There are about 20000 picture in my life and I have no back up.

    Thank you

    original title: invalid photos :(

    Perhaps the following links would offer a few ideas:

    Windows Vista - How to take ownership and grant permissions in Windows Vista
    http://www.mydigitallife.info/how-to-take-ownership-and-grant-permissions-in-Windows-Vista/

    Windows 7 - How to take ownership & grant permissions to access files &
    Folder in Windows 7
    http://www.Blogsdna.com/2159/how-to-take-ownership-grant-permissions-to-access-files-folder-in-Windows-7.htm

  • How to connect a scanner of network including the Windows 7 firewall is blocking and adding an exception for the associated program to access the scanned files has no effect?

    Hello

    I have recently upgraded to Windows 7 and the process for adding some of my old material has been an interesting question. Who made me stuck is to be able to access my network scanners "mailboxes shared" in order to recover my scans.

    The product in question is a large format Xerox 6204 printer/scanner. The installation process for the basic print server run the 6204 as a network printer went relatively smoothly and seems to work as expected. However, the problem arises when I want to use the functionality of scan of the 6204. Scans are stored in mailbox store ' ' on the 6204 and must be retrieved by a piece of software Xerox called "wide Format Scan Service. This program essentially connects to mailboxes mailbox via the IP address of the 6204 on the network and from there should allow me to download the scans on my Windows 7 computer. Unfortunately, in order to connect to the mailbox store I am currently disable the firewall of Windows 7 altogether.

    I tried to add the Service to Scan large Format to the list of allowed programs, which gives an "impossible to connect to 6204' error. I tried to add the program to inbound and outbound rules manually, even though my experience with this is limited, with the same error. So leave the default settings in the wizard, I also tried to use the technical netstat to find out what are the ports, the software used and adding them to specific ports in the properties of the rules - all without success.

    For now, I'm stuck the point of having to run my installation of Windows 7 without a firewall to use my scanner large format, which is obviously an undesirable situation. If anyone can offer help or advice on how I can solve this problem it would be greatly appreciated.

    Try this... This solves the problem

    netsh advfirewall set global disable StatefulFTP

  • I would like to know if Windows Backup and Restore will copy a new set of files and adding to what is there in the previous backup folder

    On my old computer (XP), I used app fast backup protection to back up my files to an external drive, Iomega hosted Media Network Hard (2 TB).  I have a new Dell PC with Windows 7 (64 bit) OS.  With the help of a cable I copied all the files from my XP to Windows 7 computer.  All the files on the external hard drive, copied to a "network".  I am able to view all the folders of the Iomega file, but I can't back up my files to protect fast has not been improved to work w/Win 7.  Quick protect is divided into 6 different discs (photo-U, V-ActiveFolders, W-Music, X-backups, Public-Y, Z-movies), Iomega recommends using backup Windows and restore.  "Before you start this process, I would like to know if Windows Backup and Restore will copy a new set of files and adding to what is there in the folder backup previous Player X or if it will start a"new"backup" folder on drive X.

    Original title: BACKUP AND RESTORE

    New.

    Probably in a completely different format than you are accustomed to and accessible in a different way.

    Although I suppose you could create separate jobs for each of the existing partitions, if you wish.  But I would like to backup these partitions to something else before you start. Heh

  • Adobe Illustrator draw (this project was created by a newer version of Adobe Illustrator draw and cannot be opened in this version)

    So, I recently reinstalled Adobe Illustrator draw (again) because she kept response to crush/No. whenever I go into the app. I could get back to my projects, but now he kept showing a "pop up" that says: "this project was created by a newer version of Adobe Illustrator draw and cannot be opened in this version." I knew this version of Adobe Illustrator to draw I feel currently is an old version, but I can't seem to find a way to upgrade to the latest version. What should I do?

    Cookie,

    I thought it was GooglePlay now, but I see no more. You can get the beta by joining Adobe Android Apps - community - Google + and then go to this link to learn how to get the version beta https://plus.google.com/101146399386092670308/posts/CfcX4wgoCEX that (I don't think that this link will open for you until you join page).

    Before doing all this, make sure that your work is synchronized to creative cloud by connecting you with your Adobe Adobe Creative Cloud ID

    Let me know if you need help with anything whatsoever.

    Sue.

  • Adobe will draw and other mobile apps available on the pro 3 Surface this year?

    Mobile apps this year adobe will be available on the Surface 3 pro or anytime soon? I often start at the raffle Adobe and since obtaining a surface 3 pro, it would be a much better workflow to begin to draw and move right into illustrator with the same device, rather than having to move from iPad to surface etc.

    Hey, weird

    I know there are conversations on windows, but I know also development focuses on the parity of the function between Android and iOS. Then... I do not know. And, even if I didn't, I wouldn't be able to tell; We really didn't discuss details of the plan produced publicly.

    I know this doesn't help much, but it is as I know with certainty.

    Sue.

  • How clone a machine with customization and adding once run commands?

    Hey,.

    I started to use Orchestrator and I really like it. I'm doing something in it, but I encounter a problem. Before when I was cloning of a machine I was using the customization specification. Most of which can be made by Orchestrator, but I'm not able to find in the part Orchestrator of the code that would do the same thing as RUN ONCE comments customization section.

    Can someone help me?

    Thanks in advance

    Zbyszek

    Make it work for me, if I remember correctly.  I have duplicated "Clone, windows with signle NIC and credentials" and added an entry, runOnce (array/string), because Windows customization, Syspred with the 'Get' credentials inside he may take a commandList are the runOnce commands.  I also had to change the inputs internally "Get Windows customization, Syspred with the identification information" of the NULL value for the newly created runOnce.

  • Recorded stream damaged when arrested and added

    I am combining feeds from a number of cameras together in a stream of data recorded, let's called it "serverstream.flv".  Source water courses are all webcams, and each user is assigned a stream name based on their name and a user id, such as "1_bob" and "2_julie".

    Sometimes presenters cease broadcasting temporarily and we just switch to a blank window.  The stream side server to stop recording at that time by calling

    serverStream.record (false);

    and then when the presenter is up I start recording with

    serverStream.record ('append');

    Viewers subscribe to serverStream and it works very well for them.  But the recorded flv is corrupted each time that I do this.  He played only until the first record of time stopped, then, after that data are severely mutilated. Some tools of Moyea can extract the audio and video, but the video there are errors with the images frozen or incorrect playback speed.

    But here's the strange part.  I tried just to record the stream of presenter individually, so there is a file called "1_bob.flv" and "2_julie.flv", etc.  In the same way, I'm stopping and adding to the need.  But these recordings are very good, without the corruption at the breakpoints.  After much experimentation, I find that the FLV stored is very good ONLY when they are appointed according to the flow of the camera.  If I create any data stream on the server, called something like "bob_stream" and play the flow "1_bob" on this issue, I get errors in the record.

    What could happen?  Where this might be coming from?

    I must emphasize that this is running FMIS 3.5 and worked perfectly until recently.  Then, the server has been updated with the latest version of FMIS, and we get this problem.  The code both client side and server side application has not changed, so there must be something in the FMIS configuration has changed, but I don't see what it could be.

    Any help would be greatly appreciated.

    I doubt that there can be question of configuration but I'll still check. I do not have your business logic and use very clearly, but before that I have spent more time on what can you change your code bit and see if it works: -.

    1 change the order of reading and recording is

    serverstream.record ();

    serverstream. Play(StreamName,-1)

    2 can you place Application.xml in your application (I mean at the level where you have your main.asc) and add fake

    under the //.

    Try this and tell me what results you get, in the meantime I'll try to look more in detail about your workflow code

Maybe you are looking for

  • 8530p: HP Synaptics Touchpad Driver/software 8530p

    Back again!  I'm still working on the 8530p.  My installation of Windows 10 shows the Touchpad works.  My installation of Windows 7 shows that it does not work.  Does anyone know what version of the driver/software is required for this device running

  • The use of DAQmxWriteDigitalScalarU32 for write channels share the same ports?

    Hello I have a USB-6509 and NOR-DAQmx installed 15.5.1. Using the ANSI c api. Is it possible to create several independent channels that use different lines of the same port? DAQmxCreateTask("",&th1) DAQmxCreateDOChan(th1,"Dev1/line0:4","",DAQmx_Val_

  • data is plotted on the graph of absolute time delay

    Hi all I'm plot data on a graph of absolute time and I find 2 hours difference between the data displayed by the debugger (left) and data on the graph (X - SCALE AUTO). The time saved in ptTime, was acquired by using the function 'time' and the PC ha

  • How to close 6840 after finishing work

    HP deskjet 8640 I can set it to off after the print job completed.  The light stays on for hours after I used the printer for a job.

  • window vista 32 bit freezing

    Hello, I use a notebook compaq presario v3700 series with pre-installed Windows vista 32-bit. The problem is that this os is recently freeze when I try to start a program, connect to the internet or I do nothing it still freezes up. I can even restar