Mercurial > hg > orthanc
comparison Core/Images/JpegWriter.cpp @ 2140:aa4b8895cd23
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:12:47 +0100 |
parents | bfeacb51af20 |
children | fd5875662670 |
comparison
equal
deleted
inserted
replaced
2139:764c9157301b | 2140:aa4b8895cd23 |
---|---|
117 unsigned int height, | 117 unsigned int height, |
118 unsigned int pitch, | 118 unsigned int pitch, |
119 PixelFormat format, | 119 PixelFormat format, |
120 const void* buffer) | 120 const void* buffer) |
121 { | 121 { |
122 FILE* fp = Toolbox::OpenFile(filename, FileMode_WriteBinary); | 122 FILE* fp = SystemToolbox::OpenFile(filename, FileMode_WriteBinary); |
123 if (fp == NULL) | 123 if (fp == NULL) |
124 { | 124 { |
125 throw OrthancException(ErrorCode_CannotWriteFile); | 125 throw OrthancException(ErrorCode_CannotWriteFile); |
126 } | 126 } |
127 | 127 |