Project

General

Profile

« Previous | Next » 

Revision 2e18813f

Added by Leszek Koltunski almost 8 years ago

Beginnings of support for the SavePNG effect.

View differences:

src/main/java/org/distorted/library/DistortedObject.java
2518 2518
// WAVE
2519 2519

  
2520 2520
///////////////////////////////////////////////////////////////////////////////////////////////////   
2521
///////////////////////////////////////////////////////////////////////////////////////////////////
2522
// Other-based effects
2523
///////////////////////////////////////////////////////////////////////////////////////////////////
2524
// SAVE_PNG
2525
/**
2526
 * Save the current state of the Bitmap that's backing up our DistortedObject to a PNG file.
2527
 *
2528
 * @param filename Full path to the file.
2529
 * @return         ID of the effect added, or -1 if we failed to add one.
2530
 */
2531
 public long savePNG(String filename)
2532
   {
2533
   return mO.add(EffectNames.SAVE_PNG, filename);
2534
   }
2521 2535
}

Also available in: Unified diff