However, I found that screenshot->getPixel will not get the same pixel value as "screenshot.png", it will be darker than "screenshot.png". I guess it is because screenshot->getPixel gets the pixel value before rendering. Is it true? How to get rendered pixel value of IImage?
Code: Select all
virtual IImage * createScreenShot (video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER)=0
virtual bool writeImageToFile (IImage *image, const io::path &filename, u32 param=0)=0
virtual SColor getPixel (u32 x, u32 y) const =0