cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
dushyant
Enthusiast

Saving NativeImage to a file

Hello!

Is there a way to save a NewDisplay::NativeImage into a file? 

Thanks.

2 Replies 2
kovacsv
Booster

You can create a GX::Image from a NewDisplay::NativeImage, and then save it to a file.

 

Something like this:

GX::Image textureImage (nativeImage);

FTM::GeneralID pngType = FTM::FileTypeManager::SearchForMime ("image/png", nullptr);
textureImage.WriteToFile (resultFileLocation, pngType);

 

 

dushyant
Enthusiast

Thank you!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!