Quantcast
Channel: Programming – Xinyustudio
Viewing all articles
Browse latest Browse all 284

C++: Show Full Screen Images in a UI (Part II: Using Openframework)

$
0
0

One of my colleague recommended me using Openframework to implement the program to show a full screen image. See more details in this previous blog.

So I first created an application class FullScreenApp, which derives from ofBaseApp:

image 

An ofImage object is then introduced, and the update() and draw() function is overriden:

image

In the main() function, call the below code:

image

Here the code to load background image and process command line argument is skipped since it is fairly simple and straightforward.

Build and Run! Happy coding!


Filed under: Programming Tagged: C#, Full Screen, image, openFramework, Qt, UI

Viewing all articles
Browse latest Browse all 284

Trending Articles