demo报错修改

This commit is contained in:
tsm 2024-04-29 22:14:51 +08:00
parent 0d4ae93f6e
commit 897c310668
1 changed files with 5 additions and 1 deletions

View File

@ -12,8 +12,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import { ImageKnifeComponent, ImageKnifeOption } from '@ohos/libraryimageknife' import { FitCenter, ImageKnifeComponent,
ImageKnifeData,
ImageKnifeOption, RequestOption } from '@ohos/libraryimageknife'
import { BusinessError } from '@ohos.base' import { BusinessError } from '@ohos.base'
import { DownsampleNone } from '@ohos/imageknife/src/main/ets/components/imageknife/Downsampling/DownsampleStartegy';
let mRotate: number = 0; let mRotate: number = 0;
let mUrl = $r('app.media.pngSample'); let mUrl = $r('app.media.pngSample');
@Entry @Entry