title: Set more then one Flags at once in Paint Object in Android
body: <p>Well  problem is i want to set two different flag in paint object in android at once</p>
  
  <p>for example </p>
  
  <pre><code>Paint paint=new Paint(Paint.ANTI_ALIAS_FLAG);
   Bitmap bitmap = Bitmap.createBitmap((int) getWindowManager()
              .getDefaultDisplay().getWidth(), (int) getWindowManager()
              .getDefaultDisplay().getHeight(), Config.ARGB_4444);
      Canvas canvas=new Canvas(bitmap);
      paint.setTextSize(40);
      paint.setFlags(Paint.UNDERLINE_TEXT_FLAG);
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>   paint.setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
  </code></pre>
  
  <p>And Then</p>
  
  <pre><code>     canvas.drawText("Setting Two Flags", 10, 30, paint);
       imageView.setImageBitmap(bitmap);
  </code></pre>
  
  <p>But it is not happening if i set UNDERLINE_TEXT_FLAG the the Effect of Anti Alias is Removed.
  what if i want my text to have Strike out and underline Both Effect.is there any way to set Two flags at once in Paint</p>