Jump to content

Where is Image pixels stored, in video or system RAM?


photo

Recommended Posts

 

I need to capture rendered images from camera. The code:

image.clear();
viewport.renderImage2D(camera, image);

Where are pixels has been stored?

 

 

 

Link to comment

Thank you, silent! I have got one more question.

 

I create Image with RGB8 pixel format, but after rendering it have been RGB16F. Why is this happening?

I tried to save RGB16F image into file. But error message "Image can't save RGB16F format into the file" has been printed. 

I tried to convert image to RGB8 format via converToFormat function, but the same error has been printed. 

 

How to save image into file? How to convert pixel format?

Link to comment
×
×
  • Create New...