This library is developed to provide rounded image corners and oval shaped image implemented using extended typescript.
Install dev eco studio and open the project.
Displaying of images can be circular or oval. You need to import the following:
import { RoundImage, OvalImage } from '@ohos/libroundimage'
Supports OpenHarmony API version 8
RoundImage({ borderRadius: $borderRadius, needBorder: true, borderWidth: 10, imageWidth: $imageWidth, imageHeight: $imageHeight, imageResource: $imageResource, objectFit: $objectFit })
OvalImage({ imageSource: $imageSource, imageWidth: $ovalImageWidth, imageHeight: $ovalImageHeight, borderWidth: 5, borderColorStr: '#00FFFF', needBorder: true })
If you find any problems during usage, you can submit an Issue to us. Of course, we also welcome you to send us PR. Please enjoy and participate in open source freely.
Licensed under Apache-2.0 license
Design by : Sushanta Senapati