comparison Plugin/ViewerToolbox.cpp @ 207:3d3d00e3e715

fix for new ImageAccessor API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Oct 2018 11:44:44 +0200
parents 993dd140bd30
children 2f27287c047c
comparison
equal deleted inserted replaced
206:d1ed9efdea6c 207:3d3d00e3e715
381 { 381 {
382 OrthancPluginFreeImage(context_, image_); 382 OrthancPluginFreeImage(context_, image_);
383 } 383 }
384 384
385 385
386 Orthanc::ImageAccessor ImageReader::GetAccessor() const 386 void ImageReader::GetAccessor(Orthanc::ImageAccessor& target) const
387 { 387 {
388 Orthanc::ImageAccessor accessor; 388 target.AssignReadOnly(Convert(OrthancPluginGetImagePixelFormat(context_, image_)),
389 389 OrthancPluginGetImageWidth(context_, image_),
390 accessor.AssignReadOnly(Convert(OrthancPluginGetImagePixelFormat(context_, image_)), 390 OrthancPluginGetImageHeight(context_, image_),
391 OrthancPluginGetImageWidth(context_, image_), 391 OrthancPluginGetImagePitch(context_, image_),
392 OrthancPluginGetImageHeight(context_, image_), 392 OrthancPluginGetImageBuffer(context_, image_));
393 OrthancPluginGetImagePitch(context_, image_),
394 OrthancPluginGetImageBuffer(context_, image_));
395
396 return accessor;
397 } 393 }
398 } 394 }