Android Example Perfect Crop + TouchImageView

Attachments

  • Crop Sample.zip
    496.3 KB · Views: 2,042
  • 10511109_807459332617618_2723995257439844685_n.jpg
    10511109_807459332617618_2723995257439844685_n.jpg
    41.9 KB · Views: 987
  • 10514572_807459602617591_7148849783199956125_n.jpg
    10514572_807459602617591_7148849783199956125_n.jpg
    47.5 KB · Views: 1,333
  • 10527643_807459462617605_5852512570621737594_n.jpg
    10527643_807459462617605_5852512570621737594_n.jpg
    57.2 KB · Views: 852
Last edited:

ibra939

Active Member
Licensed User
wonderful
 

FrankBerra

Active Member
Licensed User
I tested the examples you posted but it gives me some errors related to this instructions:
B4X:
TouchImageView1.TranslatePaddingX = 50%x 
TouchImageView1.TranslatePaddingY = 60%Y 
TouchImageView1.TransformedBitmap

Am I missing something?
 

FrankBerra

Active Member
Licensed User
no...i just found the problem: i was using TouchImageView version v.2.00 instead of v. 2.11
Now everything works but now i am facing to a new problem:
The cropped and saved image is based on the resolution of my screen's device.
How can i crop the original image maintaining the original quality?
(No i am not talking about JPEG compression)
 

cxdzbl

Active Member
Licensed User
Hi all i made a simple crop example, later many try and try its here
if this help someone :)

Im using the @warwound lib TouchImageView
many thx to @warwound

this sample have one panel on the center = crop
you can use any image to center crop panel, doted image what u want ;)
and user can move the image.

-Image Move
-Zoom Touch
-Limitation at x and y
-Image save png



TouchImageView Lib
http://www.basic4ppc.com/android/forum/attachments/touchimageview-posttranslate-zip.22918/
Set is one to one,But can not get the proportion
:A friend from China
 

cxdzbl

Active Member
Licensed User
Set is one to one,But can not get the proportion
:A friend from China

Hi all i made a simple crop example, later many try and try its here
if this help someone :)

Im using the @warwound lib TouchImageView
many thx to @warwound

this sample have one panel on the center = crop
you can use any image to center crop panel, doted image what u want ;)
and user can move the image.

-Image Move
-Zoom Touch
-Limitation at x and y
-Image save png



TouchImageView Lib
http://www.basic4ppc.com/android/forum/attachments/touchimageview-posttranslate-zip.22918/
Set is one to one,But can not get the proportion
is(720*1230)
:A friend from China
 

Attachments

  • Screenshot_2016-01-12-13-10-36.png
    Screenshot_2016-01-12-13-10-36.png
    476.6 KB · Views: 363
  • cxdzbl.PNG
    cxdzbl.PNG
    365.4 KB · Views: 316
Top