如何将图片文本视频分享给其他应用

​针对图片文本视频分享给其他应用的demo

HarmonyOS
2024-05-21 20:32:00
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
vclearner

生成BuildProfile类文件后,在代码中可以通过相对路径引入该文件,如在HAR模块的Index.ets文件中使用该文件。

参考代码:

// api ->systemShare -> index.d.ts 
/* 
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. 
*/ 
import type Want from '@ohos.app.ability.Want'; 
import type common from '@ohos.app.ability.common'; 
  
declare namespace systemShare { 
export class SharedData { 
constructor(record: SharedRecord); 
  
addRecord(record: SharedRecord): void; 
  
getRecords(): Array<SharedRecord>; 
} 
  
export interface SharedRecord { 
utd: string; 
content?: string; 
uri?: string; 
title?: string; 
label?: string; 
description?: string; 
thumbnail?: Uint8Array; 
extraData?: Record<string, string>; 
} 
  
export interface Offset { 
x: number; 
y: number; 
} 
  
export interface Size { 
width: number; 
height: number; 
} 
  
export interface ShareControllerAnchor { 
windowOffset: Offset; 
size?: Size; 
} 
  
export enum SharePreviewMode { 
DEFAULT = 0, 
DETAIL 
} 
  
export enum SelectionMode { 
SINGLE = 0, 
BATCH = 1, 
ALBUM = 3 
} 
  
export interface AlbumInfo { 
uri: string; 
order: 'asc' | 'desc'; 
orderBy: string; 
} 
  
export interface ShareControllerOptions { 
selectionMode?: SelectionMode; 
anchor?: ShareControllerAnchor | string; 
previewMode?: SharePreviewMode; 
albumInfo?: AlbumInfo; 
} 
  
export class ShareController { 
constructor(data: SharedData); 
  
show(context: common.UIAbilityContext, options: ShareControllerOptions): Promise<void>; 
  
on(event: 'dismiss', callback: () => void): void; 
  
off(event: 'dismiss', callback: () => void): void; 
} 
  
export interface ContactInfo { 
contactType: string; 
contactId: string; 
} 
  
export function getSharedData(want: Want): Promise<SharedData>; 
  
export function getWant(data: SharedData): Promise<Want>; 
} 
  
export default systemShare; 
 
// api ->systemShare -> index.js 
/* 
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. 
*/ 
  
// @ts-ignore 
import systemShare from '@hms.collaboration.systemShare'; 
  
export default systemShare;
// entryability-> EntryAbility.ets 
import hilog from '@ohos.hilog'; 
import UIAbility from '@ohos.app.ability.UIAbility'; 
import window from '@ohos.window'; 
import Logger from '../utils/Logger'; 
import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; 
import { BusinessError } from '@ohos.base'; 
  
const logger = Logger.getLogger('EntryAbility'); 
  
const REQUIRED_PERMISSIONS: Permissions[] = [ 
'ohos.permission.READ_MEDIA', 
'ohos.permission.WRITE_MEDIA', 
'ohos.permission.READ_DOCUMENT', 
'ohos.permission.WRITE_DOCUMENT', 
'ohos.permission.READ_IMAGEVIDEO', 
'ohos.permission.WRITE_IMAGEVIDEO' 
]; 
  
  
export default class EntryAbility extends UIAbility { 
onWindowStageCreate(windowStage: window.WindowStage): void { 
let atManager: abilityAccessCtrl.AtManager = abilityAccessCtrl.createAtManager(); 
try { 
atManager.requestPermissionsFromUser(this.context, REQUIRED_PERMISSIONS).then((data) => { 
let results: Array<number> = data.authResults; 
for (let i = 0; i < results.length; i++) { 
if (results[i]) { 
logger.error('error', data.permissions[i]); 
this.context.terminateSelf(); 
return; 
} 
} 
let storage: LocalStorage = new LocalStorage(); 
storage.setOrCreate('context', this.context); 
windowStage.loadContent('pages/Index', storage); 
}, (err: BusinessError) => { 
logger.error('error' + JSON.stringify(err)); 
}) 
} catch (err) { 
logger.error('error' + JSON.stringify(err)); 
} 
} 
}
// mock -> index.ets 
/* 
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. 
*/ 
import systemShare from '../api/systemShare'; 
import fs from '@ohos.file.fs'; 
import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; 
import fileUri from '@ohos.file.fileuri'; 
  
const STORAGE_DOC_ROOT = 'file://docs/storage/Users/currentUser/Documents/'; 
  
export type MockRecordType = 'image' | 'video' | 'text' | 'folder' | 'ppt' | 'doc'; 
  
const fileMap: Record<string, string> = { 
'image': 'image.png', 
'video': 'video.mp4', 
'text': 'text.txt', 
'ppt': 'powerpoint.mp4', 
'doc': 'document.txt', 
'folder': 'folder' 
} 
  
const utdMap: Record<string, string> = { 
'image': uniformTypeDescriptor.UniformDataType.IMAGE, 
'video': uniformTypeDescriptor.UniformDataType.VIDEO, 
'text': uniformTypeDescriptor.UniformDataType.FILE, 
'ppt': 'com.microsoft.powerpoint.ppt', 
'doc': 'com.microsoft.word.doc', 
'folder': uniformTypeDescriptor.UniformDataType.FOLDER 
} 
  
function createRecord(utd: string): systemShare.SharedRecord { 
return { 
utd: utd 
}; 
} 
  
class SystemShareMockKit { 
userFile(fileType: MockRecordType): systemShare.SharedRecord { 
if (!fileMap[fileType]) { 
throw new Error('Not exist'); 
} 
let record = createRecord(utdMap[fileType]); 
record.uri = STORAGE_DOC_ROOT + fileMap[fileType]; 
return record; 
} 
  
async sandBoxFile(fileType: MockRecordType): Promise<systemShare.SharedRecord> { 
if (!fileMap[fileType]) { 
throw new Error('Not exist'); 
} 
let record = createRecord(utdMap[fileType]); 
let path = getContext().filesDir + '/' + fileMap[fileType]; 
record.uri = fileUri.getUriFromPath(path); 
if (fs.accessSync(path)) { 
return record; 
} 
let file = fs.openSync(path, fs.OpenMode.CREATE | fs.OpenMode.READ_WRITE); 
let array = await getContext().resourceManager.getRawFileContent(fileMap[fileType]); 
fs.writeSync(file.fd, array.buffer); 
fs.closeSync(file.fd); 
return record; 
}
// pages->index.ets 
/* 
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. 
*/ 
import systemShare from '../api/systemShare'; 
import promptAction from '@ohos.promptAction'; 
import Logger from '../utils/Logger'; 
import { systemShareMockKit as shareMock, systemShareMockKit } from '../mock'; 
import common from '@ohos.app.ability.common'; 
import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; 
import mediaquery from '@ohos.mediaquery'; 
import componentUtils from '@ohos.arkui.componentUtils'; 
//import ufm from '@ohos.filemanagement.userFileManager'; 
import dataSharePredicates from '@ohos.data.dataSharePredicates'; 
  
const storage = LocalStorage.getShared(); 
const logger = Logger.getLogger('Index'); 
  
@Entry(storage) 
@Component 
struct UIExtPreviewDemo { 
@LocalStorageLink('context') context: common.UIAbilityContext = storage.get<common.UIAbilityContext>('context')!; 
@State selectionMode: systemShare.SelectionMode = systemShare.SelectionMode.SINGLE; 
@State previewMode: systemShare.SharePreviewMode = systemShare.SharePreviewMode.DEFAULT; 
anchor?: systemShare.ShareControllerAnchor; 
@State anchorType: 'id' | 'rect' = 'rect'; 
@State usePrototype: boolean = false; 
private xsListener = mediaquery.matchMediaSync(`screen and (width <= ${vp2px(320)})`); 
private smListener = mediaquery.matchMediaSync(`screen and (width > ${vp2px(320)}) and (width <= ${vp2px(600)})`); 
private mdListener = mediaquery.matchMediaSync(`screen and (width > ${vp2px(600)}) and (width <= ${vp2px(840)})`); 
private lgListener = mediaquery.matchMediaSync(`screen and (width > ${vp2px(840)})`); 
  
aboutToAppear() { 
logger.info('xs', this.xsListener.matches, this.xsListener.media); 
logger.info('sm', this.smListener.matches, this.smListener.media); 
logger.info('md', this.mdListener.matches, this.mdListener.media); 
logger.info('lg', this.lgListener.matches, this.lgListener.media); 
this.xsListener.on('change', result => logger.info('xs, change', result.matches)); 
this.smListener.on('change', result => logger.info('sm, change', result.matches)); 
this.mdListener.on('change', result => logger.info('md, change', result.matches)); 
this.lgListener.on('change', result => logger.info('lg, change', result.matches)); 
} 
  
@Builder 
PreviewModeOption(name: string, mode: systemShare.SharePreviewMode) { 
Row({ space: 5 }) { 
Radio({ value: name, group: 'previewMode' }) 
.onChange((checked: boolean) => { 
if (checked) { 
this.previewMode = mode; 
} 
}) 
.checked(this.previewMode === mode) 
Text(name) 
} 
} 
  
@Builder 
SelectionModeOption(name: string, mode: systemShare.SelectionMode) { 
Row({ space: 5 }) { 
Radio({ value: name, group: 'SelectionMode' }) 
.onChange((checked: boolean) => { 
if (checked) { 
this.selectionMode = mode; 
} 
}) 
.checked(this.selectionMode === mode) 
Text(name) 
} 
} 
  
@Builder 
AnchorOptions(name: string, type: 'id' | 'rect') { 
Row({ space: 5 }) { 
Radio({ value: name, group: 'Anchor' }) 
.onChange((checked: boolean) => { 
if (checked) { 
this.anchorType = type; 
} 
}) 
.checked(this.anchorType === type) 
Text(name) 
} 
.height(80) 
} 
  
build() { 
Scroll() { 
  
Column({ space: 10 }) { 
Text('分享预览模式') 
Row({ space: 10 }) { 
this.PreviewModeOption('卡片', systemShare.SharePreviewMode.DEFAULT) 
  
this.PreviewModeOption('展开', systemShare.SharePreviewMode.DETAIL) 
} 
Text('分享选择模式') 
Row({ space: 10 }) { 
this.SelectionModeOption('单选', systemShare.SelectionMode.SINGLE) 
  
this.SelectionModeOption('批量', systemShare.SelectionMode.BATCH) 
  
this.SelectionModeOption('相册', systemShare.SelectionMode.ALBUM) 
} 
  
  
Row({ space: 10 }) { 
this.AnchorOptions('视图ID', 'id') 
  
this.AnchorOptions('视图矩形', 'rect') 
} 
  
Stack({ alignContent: Alignment.Center }) { 
Button('test', { type: ButtonType.Normal }).width('100%').height('100%') 
.onMouse(async (event: MouseEvent) => { 
if (event.button === MouseButton.Right && event.action === MouseAction.Release) { 
logger.info('on mouse right', event.windowY, event.windowY); 
let data = systemShareMockKit.createSharedData(await systemShareMockKit.sandBoxFile('image')); 
let controller = new systemShare.ShareController(data); 
controller 
.show(this.context, { 
selectionMode: this.selectionMode, 
previewMode: this.previewMode, 
anchor: { 
windowOffset: { x: vp2px(event.windowX), y: vp2px(event.windowY) }, 
size: { width: 5, height: 5 } 
} 
}); 
} 
}) 
Rect({ width: 100, height: 15 }) 
.id('anchor') 
.fill(Color.Red) 
} 
.height(500) 
.width('100%') 
  
Row({ space: 10 }) { 
Checkbox({ name: 'prototype' }).onChange(value => { 
this.usePrototype = value; 
}) 
  
Text('拉起原型窗') 
} 
  
Text('HarmonyOS 分享 Demo').fontSize(24) 
Button('转') 
.onClick(() => { 
  
}) 
  
if (this.selectionMode === systemShare.SelectionMode.BATCH) { 
Button('批量 - 500') 
.onClick(async () => { 
let data = shareMock.createSharedData(await shareMock.sandBoxFile('image')); 
for (let i = 0; i < 300; i++) { 
data.addRecord(await shareMock.sandBoxFile('image')); 
} 
this.showSharePanel(data); 
}) 
  
Button('批量 - 多文件(包含文件夹、图片、视频、普通文件)') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('folder'), shareMock.userFile('image'), 
shareMock.userFile('video'), shareMock.userFile('text')); 
this.showSharePanel(data); 
}) 
  
Button('批量 - 多文件(不包含文件夹,包含图片、视频、普通文件)') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('image'), 
shareMock.userFile('video'), shareMock.userFile('text')); 
this.showSharePanel(data); 
}) 
  
Button('批量 - 多文件(不包含文件夹和图片和视频,仅包含普通文件)') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('text'), shareMock.userFile('text')); 
this.showSharePanel(data); 
}) 
  
Button('批量 - 多文件 - 测试') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('text'), 
shareMock.userFile('ppt'), 
shareMock.userFile('folder'), 
shareMock.userFile('image'), 
shareMock.userFile('image'), 
shareMock.userFile('image'), 
shareMock.userFile('image'), 
shareMock.userFile('image'), 
shareMock.userFile('image'), 
shareMock.userFile('image'), 
shareMock.userFile('video'), 
shareMock.userFile('doc')); 
this.showSharePanel(data); 
}) 
  
Button('批量 - 多个图片') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('image'), shareMock.userFile('image'), 
shareMock.userFile('image')); 
this.showSharePanel(data); 
}) 
  
Button('批量 - 多个视频') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('video'), shareMock.userFile('video'), 
shareMock.userFile('video')); 
this.showSharePanel(data); 
}) 
} 
  
if (this.selectionMode === systemShare.SelectionMode.SINGLE) { 
Button('单选 - 沙箱文件') 
.onClick(async () => { 
let data = shareMock.createSharedData(await shareMock.sandBoxFile('text')); 
this.showSharePanel(data); 
}) 
Button('单选 - 用户文件') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('text')); 
this.showSharePanel(data); 
}) 
Button('单选 - 用户图片') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('image')); 
this.showSharePanel(data); 
}) 
  
Button('单选 - 用户文件夹') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('folder')); 
this.showSharePanel(data); 
}) 
Button('单选 - 用户视频') 
.onClick(() => { 
let data = shareMock.createSharedData(shareMock.userFile('video')); 
this.showSharePanel(data); 
}) 
Button('单选 - 沙箱图片') 
.onClick(async () => { 
let data = shareMock.createSharedData(await shareMock.sandBoxFile('image')); 
this.showSharePanel(data); 
}) 
  
Button('单选 - 链接/图片') 
.onClick(() => { 
logger.info('ready'); 
let data = shareMock.createSharedData({ 
utd: uniformTypeDescriptor.UniformDataType.IMAGE, 
title: 'HarmonyOS', 
uri: 'file://docs/storage/Users/currentUser/Documents/image.png', 
label: '网页海报' 
}, { 
utd: uniformTypeDescriptor.UniformDataType.HYPERLINK, 
content: 'www.harmonyos.com', 
description: '123134214', 
title: 'HarmonyOS' 
}); 
this.showSharePanel(data); 
}) 
Button('单选 - 链接/图片/文本') 
.onClick(() => { 
let data = shareMock.createSharedData({ 
utd: uniformTypeDescriptor.UniformDataType.IMAGE, 
title: 'HarmonyOS', 
uri: 'file://docs/storage/Users/currentUser/Documents/image.png', 
label: '网页海报' 
}, { 
utd: uniformTypeDescriptor.UniformDataType.HYPERLINK, 
content: 'www.harmonyos.com', 
title: 'HarmonyOS' 
}, { 
utd: uniformTypeDescriptor.UniformDataType.PLAIN_TEXT, 
title: 'HarmonyOS WebPage', 
content: 'www.harmonyos.com, HarmonyOS' 
}); 
  
this.showSharePanel(data); 
}) 
Button('单选 - 文本') 
.onClick(() => { 
let data = shareMock.createSharedData({ 
utd: uniformTypeDescriptor.UniformDataType.PLAIN_TEXT, 
content: 'www.harmonyos.com', 
title: 'HarmonyOS', 
description: 'Hello HarmonyOS' 
}); 
  
this.showSharePanel(data); 
}) 
} 
if (this.selectionMode === systemShare.SelectionMode.ALBUM) { 
// Button('相册 - 收藏') 
// .onClick(async () => { 
// let mgr = ufm.getUserFileMgr(getContext()); 
// let result = await mgr.getAlbums(ufm.AlbumType.SYSTEM, ufm.AlbumSubType.FAVORITE); 
// let album = await result.getFirstObject(); 
// let assets = await album.getPhotoAssets({ 
// fetchColumns: [], 
// predicates: new dataSharePredicates.DataSharePredicates() 
// }); 
// if (assets.getCount() === 0) { 
// promptAction.showToast({ 
// message: '请收藏至少一张图片' 
// }); 
// return; 
// } 
// let data = shareMock.createSharedData(this.getPhotoRecord(await assets.getPositionObject(0))); 
// this.showSharePanel(data, { 
// uri: album.albumUri, 
// order: 'asc', 
// orderBy: ufm.AlbumKey.DATE_ADDED.toString() 
// }); 
// }) 
} 
} 
.alignItems(HorizontalAlign.Center) 
} 
.width('100%') 
.height('100%') 
} 
  
// private getPhotoRecord(asset: ufm.FileAsset): systemShare.SharedRecord { 
// return { 
// uri: asset.uri, 
// utd: asset.fileType === ufm.FileType.IMAGE 
// ? uniformTypeDescriptor.UniformDataType.IMAGE 
// : uniformTypeDescriptor.UniformDataType.VIDEO 
// }; 
// } 
  
private showSharePanel(data: systemShare.SharedData, albumInfo?: systemShare.AlbumInfo): void { 
let controller = new systemShare.ShareController(data); 
controller.on('dismiss', () => { 
promptAction.showToast({ 
message: 'Share panel disappeared' 
}); 
}); 
logger.info('show start'); 
if (this.usePrototype) { 
controller 
.show(this.context, { 
selectionMode: this.selectionMode, 
previewMode: this.previewMode, 
albumInfo: albumInfo, 
anchor: this.anchorType === 'id' ? 'anchor' : componentUtils.getRectangleById('anchor') 
}); 
} 
logger.info('show end'); 
} 
} 
// utils-> Logger.ts 
/* 
* Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. 
*/ 
  
import hilog from '@ohos.hilog'; 
  
const TAG = 'SystemShareDemo'; 
const SYSTEM_SHARE_DOMAIN = 0x6DFE; 
  
const loggerMap: Map<string, Logger> = new Map(); 
  
class Logger { 
private static readonly singleton = new Logger(); 
  
private constructor(tag?: string) { 
this._tag = tag; 
} 
  
private _tag: string | undefined = undefined; 
  
private get tag(): string { 
return this._tag ? `[${this._tag}]` : ''; 
} 
  
static getLogger(tag?: string): Logger { 
return tag ? Logger.getOrCreate(tag) : Logger.singleton; 
} 
  
private static getOrCreate(tag: string): Logger { 
let instance = loggerMap.get(tag); 
if (!instance) { 
instance = new Logger(tag); 
loggerMap.set(tag, instance); 
} 
return instance; 
} 
  
// eslint-disable-next-line @typescript-eslint/no-explicit-any 
info(...args: any[]): void { 
hilog.info(SYSTEM_SHARE_DOMAIN, `${TAG}`, `${this.tag} ${args.join(' ')}`); 
} 
  
// eslint-disable-next-line @typescript-eslint/no-explicit-any 
debug(...args: any[]): void { 
hilog.debug(SYSTEM_SHARE_DOMAIN, `${TAG}`, `${this.tag} ${args.join(' ')}`); 
} 
  
// eslint-disable-next-line @typescript-eslint/no-explicit-any 
warn(...args: any[]): void { 
hilog.warn(SYSTEM_SHARE_DOMAIN, `${TAG}`, `${this.tag} ${args.join(' ')}`); 
} 
  
// eslint-disable-next-line @typescript-eslint/no-explicit-any 
error(...args: any[]): void { 
hilog.error(SYSTEM_SHARE_DOMAIN, `${TAG}`, `${this.tag} ${args.join(' ')}`); 
} 
} 
  
export default Logger; 
// 模块级别 module.json5 
{ 
"module": { 
"name": "entry", 
"type": "entry", 
"description": "$string:module_desc", 
"mainElement": "EntryAbility", 
"deviceTypes": [ 
"phone", 
"tablet", 
"2in1" 
], 
"deliveryWithInstall": true, 
"installationFree": false, 
"pages": "$profile:main_pages", 
"abilities": [ 
{ 
"name": "EntryAbility", 
"srcEntry": "./ets/entryability/EntryAbility.ets", 
"description": "$string:EntryAbility_desc", 
"icon": "$media:icon", 
"label": "$string:EntryAbility_label", 
"startWindowIcon": "$media:startIcon", 
"startWindowBackground": "$color:start_window_background", 
"orientation": "auto_rotation", 
"exported": true, 
"skills": [ 
{ 
"entities": [ 
"entity.system.home" 
], 
"actions": [ 
"action.system.home" 
] 
} 
] 
} 
], 
"requestPermissions": [ 
// { 
// "name": "ohos.permission.FILE_ACCESS_MANAGER" 
// }, 
{ 
"name": "ohos.permission.WRITE_MEDIA" 
}, 
{ 
"name": "ohos.permission.READ_MEDIA" 
}, 
{ 
"name": "ohos.permission.READ_IMAGEVIDEO" 
}, 
{ 
"name": "ohos.permission.WRITE_IMAGEVIDEO" 
}, 
{ 
"name": "ohos.permission.READ_DOCUMENT" 
}, 
{ 
"name": "ohos.permission.WRITE_DOCUMENT" 
} 
] 
} 
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 102.
  • 103.
  • 104.
  • 105.
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113.
  • 114.
  • 115.
  • 116.
  • 117.
  • 118.
  • 119.
  • 120.
  • 121.
  • 122.
  • 123.
  • 124.
  • 125.
  • 126.
  • 127.
  • 128.
  • 129.
  • 130.
  • 131.
  • 132.
  • 133.
  • 134.
  • 135.
  • 136.
  • 137.
  • 138.
  • 139.
  • 140.
  • 141.
  • 142.
  • 143.
  • 144.
  • 145.
  • 146.
  • 147.
  • 148.
  • 149.
  • 150.
  • 151.
  • 152.
  • 153.
  • 154.
  • 155.
  • 156.
  • 157.
  • 158.
  • 159.
  • 160.
  • 161.
  • 162.
  • 163.
  • 164.
  • 165.
  • 166.
  • 167.
  • 168.
  • 169.
  • 170.
  • 171.
  • 172.
  • 173.
  • 174.
  • 175.
  • 176.
  • 177.
  • 178.
  • 179.
  • 180.
  • 181.
  • 182.
  • 183.
  • 184.
  • 185.
  • 186.
  • 187.
  • 188.
  • 189.
  • 190.
  • 191.
  • 192.
  • 193.
  • 194.
  • 195.
  • 196.
  • 197.
  • 198.
  • 199.
  • 200.
  • 201.
  • 202.
  • 203.
  • 204.
  • 205.
  • 206.
  • 207.
  • 208.
  • 209.
  • 210.
  • 211.
  • 212.
  • 213.
  • 214.
  • 215.
  • 216.
  • 217.
  • 218.
  • 219.
  • 220.
  • 221.
  • 222.
  • 223.
  • 224.
  • 225.
  • 226.
  • 227.
  • 228.
  • 229.
  • 230.
  • 231.
  • 232.
  • 233.
  • 234.
  • 235.
  • 236.
  • 237.
  • 238.
  • 239.
  • 240.
  • 241.
  • 242.
  • 243.
  • 244.
  • 245.
  • 246.
  • 247.
  • 248.
  • 249.
  • 250.
  • 251.
  • 252.
  • 253.
  • 254.
  • 255.
  • 256.
  • 257.
  • 258.
  • 259.
  • 260.
  • 261.
  • 262.
  • 263.
  • 264.
  • 265.
  • 266.
  • 267.
  • 268.
  • 269.
  • 270.
  • 271.
  • 272.
  • 273.
  • 274.
  • 275.
  • 276.
  • 277.
  • 278.
  • 279.
  • 280.
  • 281.
  • 282.
  • 283.
  • 284.
  • 285.
  • 286.
  • 287.
  • 288.
  • 289.
  • 290.
  • 291.
  • 292.
  • 293.
  • 294.
  • 295.
  • 296.
  • 297.
  • 298.
  • 299.
  • 300.
  • 301.
  • 302.
  • 303.
  • 304.
  • 305.
  • 306.
  • 307.
  • 308.
  • 309.
  • 310.
  • 311.
  • 312.
  • 313.
  • 314.
  • 315.
  • 316.
  • 317.
  • 318.
  • 319.
  • 320.
  • 321.
  • 322.
  • 323.
  • 324.
  • 325.
  • 326.
  • 327.
  • 328.
  • 329.
  • 330.
  • 331.
  • 332.
  • 333.
  • 334.
  • 335.
  • 336.
  • 337.
  • 338.
  • 339.
  • 340.
  • 341.
  • 342.
  • 343.
  • 344.
  • 345.
  • 346.
  • 347.
  • 348.
  • 349.
  • 350.
  • 351.
  • 352.
  • 353.
  • 354.
  • 355.
  • 356.
  • 357.
  • 358.
  • 359.
  • 360.
  • 361.
  • 362.
  • 363.
  • 364.
  • 365.
  • 366.
  • 367.
  • 368.
  • 369.
  • 370.
  • 371.
  • 372.
  • 373.
  • 374.
  • 375.
  • 376.
  • 377.
  • 378.
  • 379.
  • 380.
  • 381.
  • 382.
  • 383.
  • 384.
  • 385.
  • 386.
  • 387.
  • 388.
  • 389.
  • 390.
  • 391.
  • 392.
  • 393.
  • 394.
  • 395.
  • 396.
  • 397.
  • 398.
  • 399.
  • 400.
  • 401.
  • 402.
  • 403.
  • 404.
  • 405.
  • 406.
  • 407.
  • 408.
  • 409.
  • 410.
  • 411.
  • 412.
  • 413.
  • 414.
  • 415.
  • 416.
  • 417.
  • 418.
  • 419.
  • 420.
  • 421.
  • 422.
  • 423.
  • 424.
  • 425.
  • 426.
  • 427.
  • 428.
  • 429.
  • 430.
  • 431.
  • 432.
  • 433.
  • 434.
  • 435.
  • 436.
  • 437.
  • 438.
  • 439.
  • 440.
  • 441.
  • 442.
  • 443.
  • 444.
  • 445.
  • 446.
  • 447.
  • 448.
  • 449.
  • 450.
  • 451.
  • 452.
  • 453.
  • 454.
  • 455.
  • 456.
  • 457.
  • 458.
  • 459.
  • 460.
  • 461.
  • 462.
  • 463.
  • 464.
  • 465.
  • 466.
  • 467.
  • 468.
  • 469.
  • 470.
  • 471.
  • 472.
  • 473.
  • 474.
  • 475.
  • 476.
  • 477.
  • 478.
  • 479.
  • 480.
  • 481.
  • 482.
  • 483.
  • 484.
  • 485.
  • 486.
  • 487.
  • 488.
  • 489.
  • 490.
  • 491.
  • 492.
  • 493.
  • 494.
  • 495.
  • 496.
  • 497.
  • 498.
  • 499.
  • 500.
  • 501.
  • 502.
  • 503.
  • 504.
  • 505.
  • 506.
  • 507.
  • 508.
  • 509.
  • 510.
  • 511.
  • 512.
  • 513.
  • 514.
  • 515.
  • 516.
  • 517.
  • 518.
  • 519.
  • 520.
  • 521.
  • 522.
  • 523.
  • 524.
  • 525.
  • 526.
  • 527.
  • 528.
  • 529.
  • 530.
  • 531.
  • 532.
  • 533.
  • 534.
  • 535.
  • 536.
  • 537.
  • 538.
  • 539.
  • 540.
  • 541.
  • 542.
  • 543.
  • 544.
  • 545.
  • 546.
  • 547.
  • 548.
  • 549.
  • 550.
  • 551.
  • 552.
  • 553.
  • 554.
  • 555.
  • 556.
  • 557.
  • 558.
  • 559.
  • 560.
  • 561.
  • 562.
  • 563.
  • 564.
  • 565.
  • 566.
  • 567.
  • 568.
  • 569.
  • 570.
  • 571.
  • 572.
  • 573.
  • 574.
  • 575.
  • 576.
  • 577.
  • 578.
  • 579.
  • 580.
  • 581.
  • 582.
  • 583.
  • 584.
  • 585.
  • 586.
  • 587.
  • 588.
  • 589.
  • 590.
  • 591.
  • 592.
  • 593.
  • 594.
  • 595.
  • 596.
  • 597.
  • 598.
  • 599.
  • 600.
  • 601.
  • 602.
  • 603.
  • 604.
  • 605.
  • 606.
  • 607.
  • 608.
  • 609.
  • 610.
  • 611.
  • 612.
  • 613.
  • 614.
  • 615.
  • 616.
  • 617.
  • 618.
  • 619.
  • 620.
  • 621.
  • 622.
  • 623.
  • 624.
  • 625.
  • 626.
  • 627.
  • 628.
  • 629.
  • 630.
  • 631.
  • 632.
  • 633.
  • 634.
  • 635.
  • 636.
  • 637.
  • 638.
  • 639.
  • 640.
  • 641.
  • 642.
  • 643.
  • 644.
  • 645.
  • 646.
  • 647.
  • 648.
  • 649.
  • 650.
  • 651.
  • 652.
  • 653.
  • 654.
  • 655.
  • 656.
  • 657.
  • 658.
  • 659.
  • 660.
  • 661.
  • 662.
  • 663.
  • 664.
  • 665.
  • 666.
  • 667.
  • 668.
  • 669.
  • 670.
  • 671.
  • 672.
  • 673.
  • 674.
  • 675.
  • 676.
  • 677.
  • 678.
  • 679.
  • 680.
分享
微博
QQ
微信
回复
2024-05-22 16:12:43
相关问题
HarmonyOS 如何将视频转换为GIF
784浏览 • 1回复 待解决
鸿蒙如何将音频文件转成文本
5099浏览 • 1回复 待解决
HarmonyOS 如何将图片裁切成圆形
705浏览 • 1回复 待解决
ets中如何将图片转为byte[]?
4233浏览 • 1回复 待解决
HarmonyOS 如何将图片保存到相册
763浏览 • 1回复 待解决
HarmonyOS 如何将图片插入到相册
1279浏览 • 1回复 待解决
如何将视频保存到相册以及主机端
6630浏览 • 1回复 待解决
HarmonyOS如何将图片转Base64
1957浏览 • 1回复 待解决
如何将图片PixelMap压缩到指定大小
2896浏览 • 1回复 待解决
如何将文本数据写入系统剪贴板?
1138浏览 • 1回复 待解决
如何将三方应用改为系统应用
2202浏览 • 2回复 已解决
如何将一张图片转化为PixelMapElement
11048浏览 • 1回复 待解决
HarmonyOS 如何将任意UI组件转化为图片
826浏览 • 1回复 待解决
如何将像素点保存到图片文件
3153浏览 • 1回复 待解决
HarmonyOS 如何将图片压缩并转成base64
1249浏览 • 1回复 待解决
HarmonyOS 如何将base64数据转换为图片
1431浏览 • 1回复 待解决
HarmonyOS 如何将svg图片导入到项目中
1317浏览 • 1回复 待解决