修复图片圆角图形变换导致抗锯齿、ScaleType失效
Signed-off-by: zenggaofeng <zenggaofeng2@h-partners.com>
This commit is contained in:
parent
152dbd302a
commit
546438d90b
|
@ -1,3 +1,6 @@
|
|||
## 2.1.2-rc.7
|
||||
- 修复图片圆角图形变换导致抗锯齿、ScaleType失效
|
||||
|
||||
## 2.1.2-rc.6
|
||||
- 修复手机调节显示大小时图片消失
|
||||
- imageKnife防盗链,header请求头属性设置
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"name": "entry",
|
||||
"description": "example description",
|
||||
"repository": {},
|
||||
"version": "2.1.2-rc.6",
|
||||
"version": "2.1.2-rc.7",
|
||||
"dependencies": {
|
||||
"@ohos/libraryimageknife": "file:../sharedlibrary",
|
||||
"@ohos/sharedlibrary2": "file:../sharedlibrary2",
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
},
|
||||
{
|
||||
"name": "ohos.permission.MEDIA_LOCATION",
|
||||
"reason": "$string:app_permission_MEDIA_LOCATION",
|
||||
"usedScene": {
|
||||
"abilities": [
|
||||
"EntryAbility"
|
||||
|
@ -62,6 +63,7 @@
|
|||
},
|
||||
{
|
||||
"name": "ohos.permission.READ_MEDIA",
|
||||
"reason": "$string:app_permission_READ_MEDIA",
|
||||
"usedScene": {
|
||||
"abilities": [
|
||||
"EntryAbility"
|
||||
|
|
|
@ -112,6 +112,14 @@
|
|||
{
|
||||
"name": "image_pixel",
|
||||
"value": "马赛克处理"
|
||||
},
|
||||
{
|
||||
"name": "app_permission_MEDIA_LOCATION",
|
||||
"value": "获取媒体图片"
|
||||
},
|
||||
{
|
||||
"name": "app_permission_READ_MEDIA",
|
||||
"value": "读媒体图片"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
"main": "index.ets",
|
||||
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
|
||||
"type": "module",
|
||||
"version": "2.1.2-rc.6",
|
||||
"version": "2.1.2-rc.7",
|
||||
"dependencies": {
|
||||
"pako": "^2.1.0",
|
||||
"@ohos/disklrucache": "^2.0.2-rc.0",
|
||||
|
|
|
@ -79,7 +79,7 @@ export class RoundedCornersTransformation implements BaseTransform<PixelMap> {
|
|||
if (pixelMapHeight < targetHeight) {
|
||||
targetHeight = pixelMapHeight;
|
||||
}
|
||||
this.transformPixelMap(imageSource, targetWidth, targetHeight, func);
|
||||
this.transformPixelMap(imageSource, pixelMapWidth, pixelMapHeight, func);
|
||||
}})
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"name": "imageknife",
|
||||
"description": "example description",
|
||||
"repository": {},
|
||||
"version": "2.1.2-rc.6",
|
||||
"version": "2.1.2-rc.7",
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue