<p style="color:rgb(34,34,34);background-color:rgb(255,255,255);clear:both;vertical-align:baseline;line-height:17.27272605895996px;font-size:13.63636302947998px;font-family:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif;margin:0px 0px 1em;word-wrap:break-word;border:0px;padding:0px">
I&#39;m using vtkTexturedActor2D and vtkImageMapper to display a 2D image. I can use</p><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:13.63636302947998px;vertical-align:baseline;background-color:rgb(238,238,238);font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif;overflow:auto;width:auto;max-height:600px;line-height:17.27272605895996px">
<code style="margin:0px;padding:0px;border:0px;font-size:13.63636302947998px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif">actor.GetPositionCoordinate().SetCoordinateSystemToNormalizedDisplay();
actor.this.Actor.SetPosition(0.5, 0.9);
</code></pre><p style="color:rgb(34,34,34);background-color:rgb(255,255,255);clear:both;vertical-align:baseline;line-height:17.27272605895996px;font-size:13.63636302947998px;font-family:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif;margin:0px 0px 1em;word-wrap:break-word;border:0px;padding:0px">
to place the image in the center of the window, but it&#39;s not center-aligned. The corner of the image is placed in the center. How can I center-align the image so that the center of the image is at the center of the window?</p>