Saving NativeImage to a file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-06-22 10:22 AM
‎2023-06-22
10:22 AM
Hello!
Is there a way to save a NewDisplay::NativeImage into a file?
Thanks.
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-06-22 10:55 PM
‎2023-06-22
10:55 PM
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);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-06-23 04:30 AM
‎2023-06-23
04:30 AM
Thank you!