title: When i change the width the height changes in itext
body: <p>When i change the width the height changes in canvas.</p>
  
  <pre><code>ImageData data = ImageDataFactory.create("C:\\800px-Cubicpoly.png");
  </code></pre>
  
  <p>when i specify: </p>
  
  <pre><code>data.setWidth(100);
  data.setHeight(180*2.834646f);
  </code></pre>
  
  <p>It turns out:
  <a href="https://i.stack.imgur.com/rYAKD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rYAKD.png" alt="enter image description here"></a></p>
  
  <p>when i specify: </p>
  
  <pre><code>data.setWidth(600);
  data.setHeight(180*2.834646f);
  </code></pre>
  
  <p>It turns out:
  <a href="https://i.stack.imgur.com/POaQm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/POaQm.png" alt="enter image description here"></a></p>
  
  <p><strong><em>I don’t touch the height, why does it change?</em></strong></p>
  
  <pre><code>doc.add(new Image(data).setPadding(0).setMargins(0,0,0,0));
  </code></pre>
  
  <p>original img(800x800):
  <a href="https://i.stack.imgur.com/0qlTx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0qlTx.png" alt="enter image description here"></a></p>