THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/10/2011 at 00:44, xxxxxxxx wrote:
Cinema 4D Version: 12
Language(s) : C++ ;
I want to set floating-point values to an allocated MultipassBitmap. I find it strange, that there is no method to set floating-point values, I can just see `
Bool SetPixel(LONG x, LONG y, LONG r, LONG g, LONG b);
`from the BaseBitmap class.
After a while of searching I then figured out, that I could maybe use the GetLine and SetLine if casted to a VPBuffer. Now I use the example code from the invert-image example to read a line into a buffer and set the buffer back.
When I set it back, it always returns FALSE, so the SetLine is not working. For testing purpose I didn't change the buffer that I read out, but that doesn't change the outcome. I do all this within a TagData plugin's message-callback method.
What can I do?
Is there another method I can use to update a MultipassBitmap with Real values?
Is it possible, to write data to a Bitmap residing in a Bitmap shader?