title: Gdal:Increase dimensions (Resolution) of image obtained after using createcopy()
body: <p>I am using visual c++ gdal to read .gis file from my desktop and then output the image of that file (png/jpeg). The code accepts the "input.gis" file and then creates "output.png".
  Here is my working code :</p>
  
  <pre><code>GDALDriver *poDriver;
  GDALDataset  *poDataset;
  char **papszMetadata;
  double adfGeoTransform[6];
  int nBlockXSize, nBlockYSize;
  int bGotMin, bGotMax;
  double adfMinMax[2];
  GDALAllRegister();
  poDataset = (GDALDataset *) GDALOpen("C:\\input.gis", GA_ReadOnly );
  if( poDataset == NULL )
  {
      MessageBox::Show("cannot open");      
  }
  else
  {   
      poDataset-&gt;GetGeoTransform( adfGeoTransform ); 
      GDALRasterBand  *poBand;
      poBand = poDataset-&gt;GetRasterBand( 1 );
      float *pafScanline;
      int   nXSize = poBand-&gt;GetXSize();
  
      poBand-&gt;GetBlockSize( &amp;nBlockXSize, &amp;nBlockYSize );
      adfMinMax[0] = poBand-&gt;GetMinimum( &amp;bGotMin );
      adfMinMax[1] = poBand-&gt;GetMaximum( &amp;bGotMax );
      if( ! (bGotMin &amp;&amp; bGotMax) )
          GDALComputeRasterMinMax((GDALRasterBandH)poBand, TRUE, adfMinMax);
      poDriver = GetGDALDriverManager()-&gt;GetDriverByName("PNG");
      if( poDriver == NULL )
          printf("Cannot create image");
      else
      {
          papszMetadata = poDriver-&gt;GetMetadata();
          if( CSLFetchBoolean( papszMetadata, GDAL_DCAP_CREATECOPY, FALSE ) )
          {
              printf( "Driver %s supports CreateCopy() method.\n", "png" );
          }
      }
      GDALDataset *poDstDS;
      poDstDS = poDriver-&gt;CreateCopy( "C:\\output.png", poDataset, FALSE, NULL, NULL, NULL );
      if( poDstDS != NULL )
           GDALClose( (GDALDatasetH) poDstDS );
      GDALClose( (GDALDatasetH) poDataset );
  </code></pre>
  
  <p>}</p>
  
  <p>My problem is when I use createcopy() function from gdal the size of image output is always 99 X 99 (which i guess is the default size). How can I increase the size of image to be outputted for example (512 x 512 )?</p>