title: What is differece between insampleSize and compress in Android webview?
body: <p>As I searched about this topic in Google, 
  1.</p>
  
  <pre><code>BitmapFactory.Options options = new BitmapFactory.Options();
              options.inPreferredConfig = Bitmap.Config.ARGB_8888;
              options.inSampleSize = 3;
              if (bitmap == null) {
                  bitmap = BitmapFactory.decodeFile(filePath, options);
              }
  </code></pre>
  
  <p>It means the file pixel is reduced like 1000*1000 to 300*300.
  and</p>
  
  <p>2.</p>
  
  <pre><code>bitmap.compress(CompressFormat.JPEG, 80, bos);
  </code></pre>
  
  <p>It means the size(file volume) is reduced like 1000kb -> 800kb.</p>
  
  <p>Is it right? 
  Because... when I upload some images, if the file is big, i failed to upload. (I checked the file volume is reduced by 2nd way, not 1st way)</p>
  
  <p>so I try 1st way but also fail. but when i try 2nd way, I got success!!</p>
  
  <p>so That's the reason why I ask this question. </p>
  
  <p>C.f> 
  If i cropped bitmap, the bitmap is changed???</p>
  
  <pre><code>    Bitmap croppedBitmap = null;
          if (i!=cnt) {
              if ((croppedStart + pageHeight) &gt; webview.getMeasuredHeight()) {
                  int lastHeight = webview.getMeasuredHeight() - croppedStart;
                  croppedBitmap = Bitmap.createBitmap(bitmap, 0, croppedStart, webview.getMeasuredWidth(),lastHeight-1);
              } else {
                  try{
                  croppedBitmap = Bitmap.createBitmap(bitmap, 0, croppedStart, webview.getMeasuredWidth(), pageHeight);
                  }catch(Exception e){
                      e.printStackTrace();
                  }
              }
              croppedStart += pageHeight;
              rtn.add(croppedBitmap);
          }
  </code></pre>
  
  <p>after I do this, my bitmap(orginal) is changed fullBtimap to Last croppedBitmap.
  also  Thanks!</p>