This is a newbie question.<br><br>I have a requirement where I just need to write the vtkImageData contents into a file. So, all I need to do really is dump the whole contents byte for byte.<br><br>I know I can access the data through
<br><br>void * buffer = image-&gt;GetScalarPointer();<br><br>Now, how can I get the actual size of this array? I know there are all the different scalar components etc. to take into account but is there something in vtkImageData that allows you to simply write it byte for byte?
<br><br>Best,<br>P