In the development mode, you can download the slices of all sizes for different platforms with one-click. (Please note: only iOS and Android devices supported, not including the Web.
The slice-cutting calculation rule when”Auto convert size according to the platform” and “Customize size” is not checked
When uploading a design page with Mockplus iDoc plugin, you can preset the size of iOS or Android for the design page.
Now let’s take a 200x200px slice in an iPhone8 design page (375×667) as an example. Select iOS @1x when uploading.
Since we selected iOS @1X when uploading the design page into iDoc, so the default size of the slice should be iOS@1x iniDoc storyboard. Therefore, if you want to download all sizes for the iOS slice, the sizes of iOS @2x and iOS @3x should be 2 times and 3 times of 200x200px respectively.
Since iOS @1x corresponds to Android mdpi, when all Android sizes of the slice are downloaded, the size of hdpi and xhdpi are 1.5 times and 2 times of 200x200px respectively, and so on.
Auto convert size according to platform
There three methods to auto convert size according to platform:
When ” Auto convert size according to platform” is checked, the calculation rules will change, as shown below:
After switching to the Android device and checking “Auto convert size according to platform”, you can download all Android sizes of the slice as shown below: