How to display an image with Skia on a Win32 Project (C++) - c++

All right. I just a student from China. You know it is hard to visit the official website. So I had to download Skia from GitHub, and I use JetBrains pre-built version.
Recently I am trying to display a picture on a Win32 program. But almost everything I got is to include SkImageDecoder.h and a function SkImageDecode to read an image into SkBitmap. However, I can't find it. So I think it may have been removed.
I got mad because of it. So anyone is OK. I really HOPE somebody can solve my problem.
Thanks a lot!!!

Related

Configure wxwidgets with Codeblocks

I want to build C++ GUI programs using Codeblocks+Wxwidgets+cmake. I tried to configure Wxwidgets with codeblocks IDE following the instructions given in the wxWidgets Discussion Forum as well as other Youtube tutorials.
I followed the youtube tutorials below.
Youtube tutorial
But, when 'DEBUG' and 'RELEASE' are being built, it keeps showing some kind of errors. As a result, the building was failed.
Please help me to solve this or suggest another easy way to do C++ GUI projects.
Thank you!
There is an excellent document explaining how to set up C::B with wxWidgets. It can be found here.
It is not about CMake-thingy, but it is written with enough details to help people understand how to setup the IDE.
So I suggest to delete C::B, delete wxWidgets, delete all projects you setup before and start all over, following the instructions from PB to a T.
If you hit a wall or something will not work - please comeback with the exact explanation.

How to install Qt to work with OpenCV and Visual Studio 2022

I am sorry if this question is already asked but, from every source I have read on google so far they don't cover the most latest versions and I am having a lot of trouble figuring this out.
I have a VS code for detecting faces and saving the ROI onto the desktop. Now, I need to add the functionality for force capture and need to employ GUI for it which openCV is not good enough for. I have been told to use Qt. For more than a week now I have been stuck at simply installing Qt and getting it to work. If anyone could help me out in-line with my project's purpose I would greatly appreciate it.
Every time I install I get some sort of different error which I am not able to understand (complete beginner here), the latest one I got was that Qt could not find the "Kit", even though the dialog box displayed the available ones (Mingw 2022).
Thanks in advance!

cant see c/c+ on visual studio 2019

hi im currently fallowing a udemy course and it my first road bump after 2 hours still cant figure this out please can someone help i should be able to see a tab that says c/c++ but i cant. i have made sure my c++ package is installed. im using vsc 2019 and i just cant get it working any help would be very appreciated
i have tried to "modify" vs in visual studio installer and i didnt work.
i have ask the udemy instructor and no answer
any help would be so useful thanks
(if image didnt load here is the link to imgur) https://imgur.com/gallery/zkTdba6
You mentioned that you have installed the Desktop development with C++ workload. That should be enough to get you started. However, the C/C++ options appear in the project properties only after you have added a C or C++ source file.
Sometimes it additionally asks to download/install C/C++ packages via different dialog boxes popping up. If it has asked, please make sure you installed it properly without a power failure in between. Or else as a last resort, try repeating the installation process.

Error code 0xc0000135 in Qt Creator with OpenCV

Im a novice coder, that needs to make a simple UI - i've chosen to do it in Qt Creator.
As i need to incorporate a webcam feed, i've been advised to use OpenCV.
I've followed the following guide: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows
However im running into the problem "Error code 0xc0000135" when i try to debug my code.
I've added the different PATHs to the Enviromental Variables as requested in the guide. Anyone with a kind idea of where the issue might lie, or can it be anywhere in the process?
Cheers!
I am going to suggest that unless you are going to do a lot of computer vision stuff, that you leave OpenCV for the native Qt approach which is QMediaPlayer.
In QtCreator the example is built in, just select "Welcome" -> "Examples" -> "search for video player" -> "select example.
Or if you prefer browsing online, here it is.
If you still want to use OpenCV, please add more details to the question so it is easier to help you!

QT platform plugin "windows"

So I am working on my Diploma Thesis, and so far everything went fine.
So this week I installed Win8.1 on my PC and installed QT, implemented some things and wanted to send the release version of my program to my company.
I compiled the hole thing, copied it to my release folder and i got an error.
"This application failed to start because it could not find or load the Qt platform plugin "windows"."
I googled and found out that I have add a folder named "platforms". Said and done. Same error. I also tried to copy the hole plugins folder to my release folder. Same error.
I really need help because my boss isn't happy about giving in work too late.
I hope someone can help me.
Do you also have "qminimal.dll" placed in your platforms directory?
Edit:
Sorry, "qminimal.dll" was not displayed in my previous post.
I found the Problem!
Previously i used the dll's from my old QT installation. I just copied the ones from the new Installtion into a folder and the exe. I don't even need the qwindow.dll now.
BUT! I works now... :)
Is there a way, that I create my own DLL, just for my Application?
But still thanks for your help!