Friday 15 May 2015

Image clipping property titanium -


I have an image using titanium and I want to know whether to implement the clipping property of images in titanum There is no way

Yes, you can crop an image using the function.

For example: Load your image from the file system var imagefile = Ti.Filesystem.getFile (Ti.Filesystem.resourcesDirectory, "yourimage.png" ); Var imageBlob = imagefile.read (); // it crop as you like var croppedImage = blob.imageAsCropped ({x: 20, y: 20, width: 100, height: 100}); // Paste it into an image view var imageView = Ti.UI.createImageView ({Image: Crop Image, ... other attributes ...}); // Do you want to do this ...

No comments:

Post a Comment