title: How to change an images size in c++, SDL
body: <p>How can I change the images size in the code below:</p>
  
  <pre><code>const int XHome = 10, YHome = 10;
  const int WHome = 50, HHome = 50;
  .
  .
  .
  
  SDL_Surface* Image = SDL_LoadBMP(Address);
  
  SDL_Rect destRect;
  
  destRect.x = WHome * x; 
  destRect.y = HHome * y; 
  destRect.w = WHome;
  destRect.h = HHome;
  
  SDL_BlitSurface(Image, NULL, mainScreen, &amp;destRect);
  
  SDL_FreeSurface(Image);
  </code></pre>
  
  <p>When I put <code>Image</code> in <code>mainScreen</code> which is another <code>SDL_Surface</code>, It's bigger than 50*50. Is it possible to resize <code>Image</code>? Thank you.</p>
  
  <hr>
  
  <p>this is what happens when I set the WHome and HHome, 50*50.<br>
  Since I have only 5 reputation, I can't post images. To see the image please click <a href="http://i.stack.imgur.com/QCQJq.png" rel="nofollow">here</a>.</p>
  
  <p>But when I set them like the original images size, this is what I see:<br>
  <a href="http://i.stack.imgur.com/QifU5.png" rel="nofollow">here</a></p>