Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ecpcitest
vtk-m
Commits
2f6662b7
Commit
2f6662b7
authored
Dec 30, 2003
by
Ken Martin
Browse files
fix one warning
parent
545c8d56
Changes
1
Hide whitespace changes
Inline
Side-by-side
IO/vtkPNGWriter.cxx
View file @
2f6662b7
...
...
@@ -21,7 +21,7 @@
#include
<png.h>
vtkCxxRevisionMacro
(
vtkPNGWriter
,
"1.2
1
"
);
vtkCxxRevisionMacro
(
vtkPNGWriter
,
"1.2
2
"
);
vtkStandardNewMacro
(
vtkPNGWriter
);
vtkCxxSetObjectMacro
(
vtkPNGWriter
,
Result
,
vtkUnsignedCharArray
);
...
...
@@ -167,12 +167,9 @@ extern "C"
void
vtkPNGWriter
::
WriteSlice
(
vtkImageData
*
data
)
{
// Call the correct templated function for the output
void
*
outPtr
;
unsigned
int
ui
;
int
*
uext
=
data
->
GetUpdateExtent
();
// Call the correct templated function for the input
outPtr
=
data
->
GetScalarPointer
(
uext
[
0
],
uext
[
2
],
uext
[
4
]);
if
(
data
->
GetScalarType
()
!=
VTK_UNSIGNED_SHORT
&&
data
->
GetScalarType
()
!=
VTK_UNSIGNED_CHAR
)
{
...
...
@@ -235,6 +232,8 @@ void vtkPNGWriter::WriteSlice(vtkImageData *data)
int
*
uExtent
=
data
->
GetUpdateExtent
();
void
*
outPtr
;
outPtr
=
data
->
GetScalarPointer
(
uExtent
[
0
],
uExtent
[
2
],
uExtent
[
4
]);
png_uint_32
width
,
height
;
width
=
uExtent
[
1
]
-
uExtent
[
0
]
+
1
;
height
=
uExtent
[
3
]
-
uExtent
[
2
]
+
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment