------------------------------------------------------------------------------
| 302 | |
| 303 | //------------------------------------------------------------------------------ |
| 304 | const char* vtkDataEncoder::EncodeAsBase64Jpg(vtkImageData* img, int quality) |
| 305 | { |
| 306 | // Perform in-memory write of image as jpg |
| 307 | vtkNew<vtkJPEGWriter> writer; |
| 308 | writer->WriteToMemoryOn(); |
| 309 | writer->SetInputData(img); |
| 310 | writer->SetQuality(quality); |
| 311 | writer->Write(); |
| 312 | |
| 313 | // Return Base64-encoded string |
| 314 | return this->Internals->GetBase64EncodedImage(writer->GetResult()); |
| 315 | } |
| 316 | |
| 317 | //------------------------------------------------------------------------------ |
| 318 | void vtkDataEncoder::Flush(vtkTypeUInt32 key) |
nothing calls this directly
no test coverage detected