I'm happy to announce the publication of my new B4XView library. This library adds to the XUi Views the native views of the three platforms (Android / IOS / Desktop) so that they can be managed by Design, using them as XUI views without having to change its type in the Globals Sub. With this...
JavaFX - Transformations - Transformation is nothing but changing graphics into something else by applying some rules. These rules allow you to apply various types of transformations such as shifting the position of the object by maintaining its shape, rotating the object based on an angle...
JavaFX - Transformations - Transformation is nothing but changing graphics into something else by applying some rules. These rules allow you to apply various types of transformations such as shifting the position of the object by maintaining its shape, rotating the object based on an angle...
private Sub FlipImageJava (RotationX As Float, RotationY As Float, Rotation As Float)
jo.RunMethod("flipImage", Array As Object(mBaxView, RotationX, RotationY, Rotation, 1280.0f * Density))
End Sub
Java:
#IF JAVA
public void flipImage (ImageView imageView, float RotationX, float RotationY, float Rotation, float CameraDistance)
{
import android.widget.ImageView;
import android.util.DisplayMetrics;
//BA.LogInfo("flipImage: In");
/*---------------------------------------------------------------------------------------
//Better to use parameter CameraDistance as B4A already provides the information required.
//However, here's a way to do it:
DisplayMetrics metrics = getResources().getDisplayMetrics();
float CameraDistance = 1280.0f * (metrics.density * 160f);
----------------------------------------------------------------------------------------
*/
float PivotX = imageView.getWidth()/2.0f; //'width centre
float PivotY = imageView.getHeight()/2.0f; //height centre
imageView.setPivotX(PivotX);
imageView.setPivotX(PivotX);
imageView.setPivotY(PivotY);
imageView.setRotationX(RotationX);
imageView.setRotationY(RotationY);
imageView.setRotation(Rotation);
imageView.setCameraDistance(CameraDistance);
//BA.LogInfo("flipImage: Out");
}
#End If
Hi I am looking to flip card (many cards), meaning flip between 2 images with the card flip effect. I found this, but this is very limited library https://www.b4x.com/android/forum/threads/flipimageview.37396/#post-274973 is there other solution? library?
For ease of coding, I've laid out the App 1080 wide by 1920 tall. (Portrait) All my references are based on those positions. Now I need to run the App on a 1920*1080 display so I need to rotate everything to fit the screen, can anyone point me in the right direction? Thanks
I'm happy to announce the publication of my new B4XView library. This library adds to the XUi Views the native views of the three platforms (Android / IOS / Desktop) so that they can be managed by Design, using them as XUI views without having to change its type in the Globals Sub. With this...
Hi I am looking to flip card (many cards), meaning flip between 2 images with the card flip effect. I found this, but this is very limited library https://www.b4x.com/android/forum/threads/flipimageview.37396/#post-274973 is there other solution? library?
For ease of coding, I've laid out the App 1080 wide by 1920 tall. (Portrait) All my references are based on those positions. Now I need to run the App on a 1920*1080 display so I need to rotate everything to fit the screen, can anyone point me in the right direction? Thanks
Hi All, I just started on B4J yesterday so forgive me if im missing something here. I want to squirt some numbers into B4J via Bluetooth serial port from a 6 axis IMU i will be making. I have a 3D rectangle in designer (shapes - box(FX8) that i have full control over at DESIGN time BUT i want to...