1 package mhr.appcore.generators;
3 import mhr.appcore.bitmap.BitmapInfo;
4 import mhr.appcore.bitmap.ChannelCount;
5 import mhr.appcore.bitmap.ColorMode;
6 import mhr.appcore.bitmap.Depth;
7 import mhr.appcore.bitmap.NBitmap;
8 import mhr.appcore.bitmap.NativeType;
9 import mhr.appcore.bitmap.exceptions.BitmapAllocationException;
10 import mhr.appcore.bitmap.exceptions.UnsupportedBitmapException;
18 protected static native
long createRoundBrush(
int nativeType,
int size,
double hardness);
21 protected static native
int createRoundBrushIn(
int nativeType,
long dstAdress,
int size,
double hardness);
53 return new NBitmap(adress, info);
60 throw new IllegalArgumentException(
"Brush must be created in single channel bitmap.");
64 throw new IllegalStateException(
"Bitmap is already disposed.");