Bounding Box for a string in C++ [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a string with me and I wanted to find the size of box that is bounding the string.Is there any C++ API which can help me with it?
I know it can be done with GDI+.But I wanted a more better way using basic APIs
Using Gdi+ is an overhead as it would have to start Gdi+ and close it..So if i can obtain it directly without using GDI+

The lowest level function that one can think of is GetTextExtentPoint32 in Win32/GDI (C/C++ API).

Related

Is there a way to figure out the size of a program's canvas using c++? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm fairly new to c++ and was wondering if there is a way to figure out the canvas' size of another program?
For example, code something that will tell me the size and position of a program like Task Manager or CommandPropmt. Of course, they would have to be opened first.
It's quite easy to do this - get the window handle with FindWindow(), and then get the size of the window using GetWindowRect() or GetClientRect(), depending on which bit of the application window you want the size of. All these functions are part of the Win32 API and are fully documented online.

OpenCV (or similar library) in Go [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I intend to use OpenCV for a project in which I've already built the server in Go. However, OpenCV doesn't have a Go API, so what's the best solution? Call a c++ program with .exec, use swig, find another library to do computer vision?
Thanks.
Edit: I want to maximize performance, and I'm ok with C++.
SWIG is certainly a viable option.
You can also search for a Go binding to OpenCV. For example: https://github.com/lazywei/go-opencv

Create timer queue in Linux using C++ [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have implemented a project in Windows using C++ that creates a timer queue, add entries to it, perform a callback function when the timer expires,waits for next timer, etc. It was possible using the Windows functions CreateTimer, CreateTimerQueueTimer, CreateTimer,etc.
Now my question is how to do the same thing in Linux using C++? Is there some API ? Is timer_create a good option for doing this? It will be much helpful if an example is also provided.
Can't you use libevent for this ?

Access linux's terminal per pixel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to write text-based gui. Is there a way to access terminal per pixel using pure C++? I read a one method, but it was SDL based ;[
Not sure what you imply by "Pure C++", but ncurses is the go-to library for CLI applications (and there is a port for Windows called pdcurses )

How to make a MATLAB function to be run in html? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I've developed a MATLAB code that I think it is useful to be used by researchers. How can I embed it in a website to be used free?
It gets two integers and return a set of integers
Also it is possible to convert it to c++, If it helps.
Thanks
Submit your m-file(s) to Matlab Central File Exchange, this is the perfect place for it.