修复图片圆角图形变换导致抗锯齿、ScaleType失效

Signed-off-by: zenggaofeng <zenggaofeng2@h-partners.com>
This commit is contained in:
zenggaofeng 2024-02-26 11:38:29 +08:00
parent 152dbd302a
commit 546438d90b
7 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,6 @@
## 2.1.2-rc.7
- 修复图片圆角图形变换导致抗锯齿、ScaleType失效
## 2.1.2-rc.6 ## 2.1.2-rc.6
- 修复手机调节显示大小时图片消失 - 修复手机调节显示大小时图片消失
- imageKnife防盗链header请求头属性设置 - imageKnife防盗链header请求头属性设置

View File

@ -4,7 +4,7 @@
"name": "entry", "name": "entry",
"description": "example description", "description": "example description",
"repository": {}, "repository": {},
"version": "2.1.2-rc.6", "version": "2.1.2-rc.7",
"dependencies": { "dependencies": {
"@ohos/libraryimageknife": "file:../sharedlibrary", "@ohos/libraryimageknife": "file:../sharedlibrary",
"@ohos/sharedlibrary2": "file:../sharedlibrary2", "@ohos/sharedlibrary2": "file:../sharedlibrary2",

View File

@ -53,6 +53,7 @@
}, },
{ {
"name": "ohos.permission.MEDIA_LOCATION", "name": "ohos.permission.MEDIA_LOCATION",
"reason": "$string:app_permission_MEDIA_LOCATION",
"usedScene": { "usedScene": {
"abilities": [ "abilities": [
"EntryAbility" "EntryAbility"
@ -62,6 +63,7 @@
}, },
{ {
"name": "ohos.permission.READ_MEDIA", "name": "ohos.permission.READ_MEDIA",
"reason": "$string:app_permission_READ_MEDIA",
"usedScene": { "usedScene": {
"abilities": [ "abilities": [
"EntryAbility" "EntryAbility"

View File

@ -112,6 +112,14 @@
{ {
"name": "image_pixel", "name": "image_pixel",
"value": "马赛克处理" "value": "马赛克处理"
},
{
"name": "app_permission_MEDIA_LOCATION",
"value": "获取媒体图片"
},
{
"name": "app_permission_READ_MEDIA",
"value": "读媒体图片"
} }
] ]
} }

View File

@ -14,7 +14,7 @@
"main": "index.ets", "main": "index.ets",
"repository": "https://gitee.com/openharmony-tpc/ImageKnife", "repository": "https://gitee.com/openharmony-tpc/ImageKnife",
"type": "module", "type": "module",
"version": "2.1.2-rc.6", "version": "2.1.2-rc.7",
"dependencies": { "dependencies": {
"pako": "^2.1.0", "pako": "^2.1.0",
"@ohos/disklrucache": "^2.0.2-rc.0", "@ohos/disklrucache": "^2.0.2-rc.0",

View File

@ -79,7 +79,7 @@ export class RoundedCornersTransformation implements BaseTransform<PixelMap> {
if (pixelMapHeight < targetHeight) { if (pixelMapHeight < targetHeight) {
targetHeight = pixelMapHeight; targetHeight = pixelMapHeight;
} }
this.transformPixelMap(imageSource, targetWidth, targetHeight, func); this.transformPixelMap(imageSource, pixelMapWidth, pixelMapHeight, func);
}}) }})
} }

View File

@ -6,6 +6,6 @@
"name": "imageknife", "name": "imageknife",
"description": "example description", "description": "example description",
"repository": {}, "repository": {},
"version": "2.1.2-rc.6", "version": "2.1.2-rc.7",
"dependencies": {} "dependencies": {}
} }