App
Functions
mhr_appcore_generators_BrushGenerator.cpp File Reference
#include "mhr_appcore_generators_BrushGenerator.hpp"
#include "../app/app_all.hpp"

Go to the source code of this file.

Functions

JNIEXPORT jlong JNICALL Java_mhr_appcore_generators_BrushGenerator_createRoundBrush (JNIEnv *pEnv, jclass pThisClass, jint nativeType, jint size, jdouble hardness)
 
JNIEXPORT jint JNICALL Java_mhr_appcore_generators_BrushGenerator_createRoundBrushIn (JNIEnv *pEnv, jclass pThisClass, jint nativeType, jlong dstAdress, jint size, jdouble hardness)
 

Function Documentation

JNIEXPORT jlong JNICALL Java_mhr_appcore_generators_BrushGenerator_createRoundBrush ( JNIEnv *  pEnv,
jclass  pThisClass,
jint  nativeType,
jint  size,
jdouble  hardness 
)

protected native long createRoundBrush(int nativeType, int size, double hardness);

Definition at line 9 of file mhr_appcore_generators_BrushGenerator.cpp.

{
void * vPtr = NULL;
switch ((BitmapNativeType) nativeType) {
case mono_8_bit:
vPtr = TBrushGenerator::createRoundBrush<px_1x8bit, px_1x8bit>(size, hardness);
if (vPtr == NULL) {
return 0;
}
// Alokaci dat si hlida TBrushGenerator
break;
default:
break;
}
return (long long) vPtr;
}
JNIEXPORT jint JNICALL Java_mhr_appcore_generators_BrushGenerator_createRoundBrushIn ( JNIEnv *  pEnv,
jclass  pThisClass,
jint  nativeType,
jlong  dstAdress,
jint  size,
jdouble  hardness 
)

protected native int createRoundBrushIn(int nativeType, long dstAdress, int size, double hardness);

Definition at line 28 of file mhr_appcore_generators_BrushGenerator.cpp.

{
int retVal = 0;
switch ((BitmapNativeType) nativeType) {
case mono_8_bit: {
retVal = TBrushGenerator::createRoundBrushIn(*(mono_8bit_bitmap *)dstAdress, size, hardness);
break;
}
default:
retVal = -1;
break;
}
return retVal;
}