I read a lot of posts about cropping an image from a gallery or camera, and I know that outputX / outputY refers to the size of the output / cropped image. However, no one explained what aspectX / aspectY does? And what is the output unit X / outputY? Is this dp ?
dp
Sample code: Change your intent to evade Google
aspectX and aspectY - the ratio of the width and height of the image of the result, if you need to scale it. width / height = aspectX / aspectY
width / height = aspectX / aspectY
And I don't think the unit is outputX and outputY dp . I think this is just a pixel.
aspectX and aspectY are just a proportion, so if you want to place an image with a 16: 9 aspectX = 16 and aspectY = 9 , you will get the desired ratio.
aspectX
aspectY
aspectX = 16
aspectY = 9
Good luck
Source: https://habr.com/ru/post/988019/More articles:Execution failed for task ': packageAllDebugClassesForMultiDex' - androidwatchdog timer: busy device or resource - cHow to link external json file in JSFiddle? - jsonDoes / Why php forces you to use the constructor of an object - objectAn idiomatic alternative to reflection - reflectionLodash remove from string array - javascriptAndroid studio prevents reformatting code on insertion - androidChange Google Goal for Android - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/988023/detecting-active-virtual-desktop-on-windows-10-task-view-virtual-desktop-switcher&usg=ALkJrhgnRN2rEEfD_rL5EunK4w62slTREgSelect and crop with max size in android - androidAll Articles