mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
feat(image-asset-ios): add autoScaleFactor option to switch auto scaling (#6127)
This commit is contained in:

committed by
GitHub

parent
7e89f942b4
commit
81e63ee19e
@ -190,7 +190,7 @@ function getFileName(path: string): string {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
function getImageData(instance: UIImage, format: "png" | "jpeg" | "jpg", quality = 1.0): NSData {
|
||||
function getImageData(instance: UIImage, format: "png" | "jpeg" | "jpg", quality = 0.9): NSData {
|
||||
var data = null;
|
||||
switch (format) {
|
||||
case "png":
|
||||
|
Reference in New Issue
Block a user