I have a small app that renders an image. It's in .ppm format and opens nicely in Mac's Xee image viewer. The image is created in the default project folder.
However, the user doesn't know where the image is after it is rendered and I would like to open it automatically or perhaps offer where to save the image before it is created.
That is the first problem. The second problem is .ppm - it's not opened by default on Windows, you need Irfan Viewer or something alike.
Is there a way to solve both those problems easily in Qt? For instance, the image is created where the user wants and my app displays it in that ppm format without using some other software? And If a user wants to reopen the image, I should probably make it possible, as well.
I am not a Qt, nor a C++ developer so I am struggling a bit with this, but I have to do it.
Thanks in advance for the tips and advices.
If you convert your image to a QImage (if it's not one already), you can specify where and in what format to save it when calling the QImage::save method.
Related
I'm using QLabel and QPixmap to show image in my program. I would like to use something like snipping tool in Windows to let user to select part of image that will be processed further.
For example, I load image, user select part of it (rectangle), and it shows it is selected and I can read coordinates that are selected, so I can proceed with processing only part of image.
I don't think this is possible with Qt without a fair amount of coding.
Maybe a third-party Qt widget, such as https://github.com/dimkanovikov/ImageCropper, is what you're looking for?
I want to insert pictures in a PowerPoint slide. I've saved bitmap to the disk and called Add_Picture to insert picture, it is working properly.
What I want is without saving bitmap to the disk, add a picture in a PowerPoint slide.
Currently, i'm passing the picture to the clipboard and called the method Paste to do that.
Is there any better alternative solutions?
Did you look at the OLE Automation?
Keep in mind though that this solution will not be portable - Windows only.
I'm trying to use quil to procedurally generate images. I think it's really great, but I'm not trying to display the image at all. I'm just trying to save the image to a file.
Is it possible to not actually open the window and just save the file directly?
I am building an application in c++. Lets say for simplicity it gets an image and reverse it, and thus produces an output reversed image. Now, I am trying to make a user interface where a user draws and in real time he is able to see the reversed image.
That is my user interface should be able to save the image in real time(as my application needs image to be processed) and should load a result image(i.e. the output image of my application). I am not a graphics person and never built any user interface. So, don't know in which language it should be? Can we made it in c++ itself? So many questions... Any help?
You can use OpenCV C++ library for image operations and basic interface (console + windows with images).
For building more advanced interfaces you can get a look at MFC or Qt and use OpenCV images with them also (or not).
I am looking for WYSIWYG rich text editor to use with Django. I've looked at a number of different editors (CKEditor, TinyMCE, Aloha, YUI), but I can't seem to find one that has one necessary feature: dynamic image resizing.
What I mean by that is the ability to click a corner of the image in the editor and drag your mouse to resize the image. Content around the image should then adapt to the new image size. As well, the editor needs to have image upload functionality.
Any recommendations?
It's fine if its an editor+plugin combo. Ideally it would also integrate nicely with Django.
Thanks for the help!
Yup. I came to the same conclusion too. django-ckeditor is really easy to use.
Froala and Redactor are perfect for your case. They're paid though.
QuillJS is a free alternative that allows image manipulations by inserting the image directly as a base64 encoded string.