Elaztek Developer Hub
Blamite Game Engine - Keystone  00326.06.27.21.0407.blamite
A library that enables the use of Qt in Blamite's editing tools.
BlamKeystone::Utils Namespace Reference

General-purpose utilities for use within Keystone. More...

Functions

KEYSTONE void SetGraphicsViewImage (QGraphicsView *graphics_view, std::string image_path, Qt::AspectRatioMode aspect_ratio_mode)
 Applies an image to a graphics view, without the need for extra scene/pixmap management. More...
 

Detailed Description

General-purpose utilities for use within Keystone.

Function Documentation

◆ SetGraphicsViewImage()

void BlamKeystone::Utils::SetGraphicsViewImage ( QGraphicsView *  graphics_view,
std::string  image_path,
Qt::AspectRatioMode  aspect_ratio_mode 
)

Applies an image to a graphics view, without the need for extra scene/pixmap management.

Parameters
graphics_view- The graphics view to set the image for.
image_path- The path to the image file.