P Panagitois Lazos Member Licensed User Longtime User Dec 28, 2014 #1 Hi Everyone Im trying to find a way to change an bitmaps brightness but i couldent find any way . is there a way to do it ? Thanks !!
Hi Everyone Im trying to find a way to change an bitmaps brightness but i couldent find any way . is there a way to do it ? Thanks !!
P Panagitois Lazos Member Licensed User Longtime User Jan 2, 2015 #21 yes i did but its using renderscript Intrinsics witch are built-in RenderScript kernels im building a user-defined scripts Kernel so thats why i need my rs file Upvote 0
yes i did but its using renderscript Intrinsics witch are built-in RenderScript kernels im building a user-defined scripts Kernel so thats why i need my rs file
Erel B4X founder Staff member Licensed User Longtime User Jan 4, 2015 #22 Try to add the file to the jar file with 7zip. It will be copied to the apk during compilation. Upvote 0
P Panagitois Lazos Member Licensed User Longtime User Jan 4, 2015 #23 I did Try but without success . I believe that the problem is that that the rs file is not in the same directory as the java file during the compilation so the rs is not reflected to ScriptC it is described in http://developer.android.com/guide/topics/renderscript/compute.html#writing-an-rs-kernel A RenderScript kernel typically resides in a .rs file in the <project_root>/src/ directory So is there any way to do that ? P.S. All the information needed are here http://developer.android.com/guide/topics/renderscript/compute.html Upvote 0
I did Try but without success . I believe that the problem is that that the rs file is not in the same directory as the java file during the compilation so the rs is not reflected to ScriptC it is described in http://developer.android.com/guide/topics/renderscript/compute.html#writing-an-rs-kernel A RenderScript kernel typically resides in a .rs file in the <project_root>/src/ directory So is there any way to do that ? P.S. All the information needed are here http://developer.android.com/guide/topics/renderscript/compute.html
Erel B4X founder Staff member Licensed User Longtime User Jan 5, 2015 #24 Do these file supposed to be compiled in any way? Upvote 0
P Panagitois Lazos Member Licensed User Longtime User Jan 5, 2015 #25 The scripts work this way: ScriptC: These are the user-defined scripts as described in Writing a RenderScript Kernel above. Every script has a Java class reflected by the RenderScript compiler in order to make it easy to access the script from Java code; this class will have the name ScriptC_filename. For example, if the kernel above was located in invert.rs and a RenderScript context was already located in mRS, the Java code to instantiate the script would be: ScriptC_invert invert =newScriptC_invert(mRenderScript); So im not sure in witch way they are compiled . Upvote 0
The scripts work this way: ScriptC: These are the user-defined scripts as described in Writing a RenderScript Kernel above. Every script has a Java class reflected by the RenderScript compiler in order to make it easy to access the script from Java code; this class will have the name ScriptC_filename. For example, if the kernel above was located in invert.rs and a RenderScript context was already located in mRS, the Java code to instantiate the script would be: ScriptC_invert invert =newScriptC_invert(mRenderScript); So im not sure in witch way they are compiled .
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2015 #26 You can post a feature request for this in the wishlist forum. I never worked with this feature before. Upvote 0
You can post a feature request for this in the wishlist forum. I never worked with this feature before.