1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit ArkUI 19 */ 20 21/** 22 * Use the DrawableDescriptor class to get drawable image. 23 * 24 * @syscap SystemCapability.ArkUI.ArkUI.Full 25 * @since 10 26 */ 27/** 28 * Use the DrawableDescriptor class to get drawable image. 29 * 30 * @typedef { import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor } DrawableDescriptor 31 * @syscap SystemCapability.ArkUI.ArkUI.Full 32 * @atomicservice 33 * @since 11 34 */ 35declare type DrawableDescriptor = import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor; 36 37/** 38 * Import the DrawingColorFilter type object for image color filter setting. 39 * 40 * @typedef { import('../api/@ohos.graphics.drawing').default.ColorFilter } DrawingColorFilter 41 * @syscap SystemCapability.ArkUI.ArkUI.Full 42 * @crossplatform 43 * @atomicservice 44 * @since 12 45 */ 46declare type DrawingColorFilter = import('../api/@ohos.graphics.drawing').default.ColorFilter; 47 48/** 49 * Enumerates all the levels available for the image resolution quality. 50 * 51 * @typedef {import('../api/@ohos.multimedia.image').default.ResolutionQuality} ResolutionQuality 52 * @syscap SystemCapability.ArkUI.ArkUI.Full 53 * @systemapi 54 * @since 12 55 */ 56declare type ResolutionQuality = import('../api/@ohos.multimedia.image').default.ResolutionQuality; 57 58/** 59 * Lattice for dividing an image into grids. 60 * 61 * @typedef { import('../api/@ohos.graphics.drawing').default.Lattice } Lattice 62 * @syscap SystemCapability.ArkUI.ArkUI.Full 63 * @crossplatform 64 * @atomicservice 65 * @since 12 66 */ 67declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice; 68 69/** 70 * Object matrix used for setting image transformations. 71 * 72 * @typedef { import('../api/@ohos.matrix4').default.Matrix4Transit } Matrix4Transit 73 * @syscap SystemCapability.ArkUI.ArkUI.Full 74 * @crossplatform 75 * @atomicservice 76 * @since 15 77 */ 78declare type ImageMatrix = import ('../api/@ohos.matrix4').default.Matrix4Transit; 79 80/** 81 * @enum { number } 82 * @syscap SystemCapability.ArkUI.ArkUI.Full 83 * @since 7 84 */ 85/** 86 * @enum { number } 87 * @syscap SystemCapability.ArkUI.ArkUI.Full 88 * @form 89 * @since 9 90 */ 91/** 92 * @enum { number } 93 * @syscap SystemCapability.ArkUI.ArkUI.Full 94 * @crossplatform 95 * @form 96 * @since 10 97 */ 98/** 99 * @enum { number } 100 * @syscap SystemCapability.ArkUI.ArkUI.Full 101 * @crossplatform 102 * @form 103 * @atomicservice 104 * @since 11 105 */ 106declare enum ImageRenderMode { 107 /** 108 * Render according to the original image, including colors. 109 * 110 * @syscap SystemCapability.ArkUI.ArkUI.Full 111 * @since 7 112 */ 113 /** 114 * Render according to the original image, including colors. 115 * 116 * @syscap SystemCapability.ArkUI.ArkUI.Full 117 * @form 118 * @since 9 119 */ 120 /** 121 * Render according to the original image, including colors. 122 * 123 * @syscap SystemCapability.ArkUI.ArkUI.Full 124 * @crossplatform 125 * @form 126 * @since 10 127 */ 128 /** 129 * Render according to the original image, including colors. 130 * 131 * @syscap SystemCapability.ArkUI.ArkUI.Full 132 * @crossplatform 133 * @form 134 * @atomicservice 135 * @since 11 136 */ 137 Original, 138 139 /** 140 * Render the image as a template image, ignoring the color information of the image. 141 * 142 * @syscap SystemCapability.ArkUI.ArkUI.Full 143 * @since 7 144 */ 145 /** 146 * Render the image as a template image, ignoring the color information of the image. 147 * 148 * @syscap SystemCapability.ArkUI.ArkUI.Full 149 * @form 150 * @since 9 151 */ 152 /** 153 * Render the image as a template image, ignoring the color information of the image. 154 * 155 * @syscap SystemCapability.ArkUI.ArkUI.Full 156 * @crossplatform 157 * @form 158 * @since 10 159 */ 160 /** 161 * Render the image as a template image, ignoring the color information of the image. 162 * 163 * @syscap SystemCapability.ArkUI.ArkUI.Full 164 * @crossplatform 165 * @form 166 * @atomicservice 167 * @since 11 168 */ 169 Template, 170} 171 172/** 173 * Specify image's content. 174 * 175 * @enum { number } 176 * @syscap SystemCapability.ArkUI.ArkUI.Full 177 * @crossplatform 178 * @form 179 * @atomicservice 180 * @since 12 181 */ 182declare enum ImageContent { 183 /** 184 * Make image empty. 185 * 186 * @syscap SystemCapability.ArkUI.ArkUI.Full 187 * @crossplatform 188 * @form 189 * @atomicservice 190 * @since 12 191 */ 192 EMPTY = 0, 193} 194 195/** 196 * @enum { number } 197 * @syscap SystemCapability.ArkUI.ArkUI.Full 198 * @atomicservice 199 * @since 12 200 */ 201declare enum DynamicRangeMode { 202 /** 203 * Allow image content to use an unrestricted extended range. 204 * 205 * @syscap SystemCapability.ArkUI.ArkUI.Full 206 * @atomicservice 207 * @since 12 208 */ 209 HIGH = 0, 210 211 /** 212 * Allow image content to use some extended range. 213 * 214 * @syscap SystemCapability.ArkUI.ArkUI.Full 215 * @atomicservice 216 * @since 12 217 */ 218 CONSTRAINT = 1, 219 220 /** 221 * Restrict the image content dynamic range to the standard range. 222 * 223 * @syscap SystemCapability.ArkUI.ArkUI.Full 224 * @atomicservice 225 * @since 12 226 */ 227 STANDARD = 2, 228} 229 230/** 231 * @enum { number } 232 * @syscap SystemCapability.ArkUI.ArkUI.Full 233 * @since 7 234 */ 235/** 236 * @enum { number } 237 * @syscap SystemCapability.ArkUI.ArkUI.Full 238 * @form 239 * @since 9 240 */ 241/** 242 * @enum { number } 243 * @syscap SystemCapability.ArkUI.ArkUI.Full 244 * @crossplatform 245 * @form 246 * @since 10 247 */ 248/** 249 * @enum { number } 250 * @syscap SystemCapability.ArkUI.ArkUI.Full 251 * @crossplatform 252 * @form 253 * @atomicservice 254 * @since 11 255 */ 256declare enum ImageInterpolation { 257 /** 258 * Do not use interpolated image data. 259 * 260 * @syscap SystemCapability.ArkUI.ArkUI.Full 261 * @since 7 262 */ 263 /** 264 * Do not use interpolated image data. 265 * 266 * @syscap SystemCapability.ArkUI.ArkUI.Full 267 * @form 268 * @since 9 269 */ 270 /** 271 * Do not use interpolated image data. 272 * 273 * @syscap SystemCapability.ArkUI.ArkUI.Full 274 * @crossplatform 275 * @form 276 * @since 10 277 */ 278 /** 279 * Do not use interpolated image data. 280 * 281 * @syscap SystemCapability.ArkUI.ArkUI.Full 282 * @crossplatform 283 * @form 284 * @atomicservice 285 * @since 11 286 */ 287 None, 288 289 /** 290 * Low usage of interpolated image data. 291 * 292 * @syscap SystemCapability.ArkUI.ArkUI.Full 293 * @since 7 294 */ 295 /** 296 * Low usage of interpolated image data. 297 * 298 * @syscap SystemCapability.ArkUI.ArkUI.Full 299 * @form 300 * @since 9 301 */ 302 /** 303 * Low usage of interpolated image data. 304 * 305 * @syscap SystemCapability.ArkUI.ArkUI.Full 306 * @crossplatform 307 * @form 308 * @since 10 309 */ 310 /** 311 * Low usage of interpolated image data. 312 * 313 * @syscap SystemCapability.ArkUI.ArkUI.Full 314 * @crossplatform 315 * @form 316 * @atomicservice 317 * @since 11 318 */ 319 Low, 320 321 /** 322 * Interpolated image data is used moderately. 323 * 324 * @syscap SystemCapability.ArkUI.ArkUI.Full 325 * @since 7 326 */ 327 /** 328 * Interpolated image data is used moderately. 329 * 330 * @syscap SystemCapability.ArkUI.ArkUI.Full 331 * @form 332 * @since 9 333 */ 334 /** 335 * Interpolated image data is used moderately. 336 * 337 * @syscap SystemCapability.ArkUI.ArkUI.Full 338 * @crossplatform 339 * @form 340 * @since 10 341 */ 342 /** 343 * Interpolated image data is used moderately. 344 * 345 * @syscap SystemCapability.ArkUI.ArkUI.Full 346 * @crossplatform 347 * @form 348 * @atomicservice 349 * @since 11 350 */ 351 Medium, 352 353 /** 354 * High usage of interpolated image data may affect the speed of image rendering. 355 * 356 * @syscap SystemCapability.ArkUI.ArkUI.Full 357 * @since 7 358 */ 359 /** 360 * High usage of interpolated image data may affect the speed of image rendering. 361 * 362 * @syscap SystemCapability.ArkUI.ArkUI.Full 363 * @form 364 * @since 9 365 */ 366 /** 367 * High usage of interpolated image data may affect the speed of image rendering. 368 * 369 * @syscap SystemCapability.ArkUI.ArkUI.Full 370 * @crossplatform 371 * @form 372 * @since 10 373 */ 374 /** 375 * High usage of interpolated image data may affect the speed of image rendering. 376 * 377 * @syscap SystemCapability.ArkUI.ArkUI.Full 378 * @crossplatform 379 * @form 380 * @atomicservice 381 * @since 11 382 */ 383 High, 384} 385 386/** 387 * @enum { number } 388 * @syscap SystemCapability.ArkUI.ArkUI.Full 389 * @crossplatform 390 * @atomicservice 391 * @since 14 392 */ 393declare enum ImageRotateOrientation { 394 /** 395 * Rotate according to the image rotation 396 * 397 * @syscap SystemCapability.ArkUI.ArkUI.Full 398 * @crossplatform 399 * @atomicservice 400 * @since 14 401 */ 402 AUTO = 0, 403 404 /** 405 * Ignore the rotation of the image 406 * 407 * @syscap SystemCapability.ArkUI.ArkUI.Full 408 * @crossplatform 409 * @atomicservice 410 * @since 14 411 */ 412 UP = 1, 413 414 /** 415 * Based on image rotation, rotate clockwise 90 degrees 416 * 417 * @syscap SystemCapability.ArkUI.ArkUI.Full 418 * @crossplatform 419 * @atomicservice 420 * @since 14 421 */ 422 RIGHT = 2, 423 424 /** 425 * Based on image rotation, rotate clockwise 180 degrees 426 * 427 * @syscap SystemCapability.ArkUI.ArkUI.Full 428 * @crossplatform 429 * @atomicservice 430 * @since 14 431 */ 432 DOWN = 3, 433 434 /** 435 * Based on image rotation, rotate clockwise 270 degrees 436 * 437 * @syscap SystemCapability.ArkUI.ArkUI.Full 438 * @crossplatform 439 * @atomicservice 440 * @since 14 441 */ 442 LEFT = 4, 443} 444 445/** 446 * @interface ImageInterface 447 * @syscap SystemCapability.ArkUI.ArkUI.Full 448 * @since 7 449 */ 450/** 451 * @interface ImageInterface 452 * @syscap SystemCapability.ArkUI.ArkUI.Full 453 * @form 454 * @since 9 455 */ 456/** 457 * @interface ImageInterface 458 * @syscap SystemCapability.ArkUI.ArkUI.Full 459 * @crossplatform 460 * @form 461 * @since 10 462 */ 463/** 464 * @interface ImageInterface 465 * @syscap SystemCapability.ArkUI.ArkUI.Full 466 * @crossplatform 467 * @form 468 * @atomicservice 469 * @since 11 470 */ 471interface ImageInterface { 472 /** 473 * Set src to obtain images. 474 * 475 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 476 * @returns { ImageAttribute } 477 * @syscap SystemCapability.ArkUI.ArkUI.Full 478 * @since 7 479 */ 480 /** 481 * Set src to obtain images 482 * 483 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 484 * @returns { ImageAttribute } 485 * @syscap SystemCapability.ArkUI.ArkUI.Full 486 * @form 487 * @since 9 488 */ 489 /** 490 * Set src to obtain images 491 * 492 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 493 * @returns { ImageAttribute } 494 * @syscap SystemCapability.ArkUI.ArkUI.Full 495 * @crossplatform 496 * @form 497 * @since 10 498 */ 499 /** 500 * Set src to obtain images 501 * 502 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 503 * @returns { ImageAttribute } 504 * @syscap SystemCapability.ArkUI.ArkUI.Full 505 * @crossplatform 506 * @form 507 * @atomicservice 508 * @since 11 509 */ 510 (src: PixelMap | ResourceStr | DrawableDescriptor): ImageAttribute; 511 512 /** 513 * Set src to obtain images 514 * 515 * @param { PixelMap | ResourceStr | DrawableDescriptor | ImageContent } src 516 * @returns { ImageAttribute } 517 * @syscap SystemCapability.ArkUI.ArkUI.Full 518 * @crossplatform 519 * @form 520 * @atomicservice 521 * @since 12 522 */ 523 (src: PixelMap | ResourceStr | DrawableDescriptor | ImageContent): ImageAttribute; 524 525 /** 526 * Set src and ai options to obtain images 527 * 528 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 529 * @param { ImageAIOptions } imageAIOptions 530 * @returns { ImageAttribute } 531 * @syscap SystemCapability.ArkUI.ArkUI.Full 532 * @atomicservice 533 * @since 12 534 */ 535 (src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): ImageAttribute; 536} 537 538/** 539 * Defines source size of image. 540 * 541 * @interface ImageSourceSize 542 * @syscap SystemCapability.ArkUI.ArkUI.Full 543 * @crossplatform 544 * @form 545 * @atomicservice 546 * @since 18 547 */ 548 549interface ImageSourceSize { 550 /** 551 * Set width. 552 * 553 * @type { number } 554 * @syscap SystemCapability.ArkUI.ArkUI.Full 555 * @since 7 556 */ 557 /** 558 * Set width. 559 * 560 * @type { number } 561 * @syscap SystemCapability.ArkUI.ArkUI.Full 562 * @form 563 * @since 9 564 */ 565 /** 566 * Set width. 567 * 568 * @type { number } 569 * @syscap SystemCapability.ArkUI.ArkUI.Full 570 * @crossplatform 571 * @form 572 * @since 10 573 */ 574 /** 575 * Set width. 576 * 577 * @type { number } 578 * @syscap SystemCapability.ArkUI.ArkUI.Full 579 * @crossplatform 580 * @form 581 * @atomicservice 582 * @since 11 583 */ 584 /** 585 * Set width. 586 * Anonymous Object Rectification. 587 * 588 * @type { number } 589 * @syscap SystemCapability.ArkUI.ArkUI.Full 590 * @crossplatform 591 * @form 592 * @atomicservice 593 * @since 18 594 */ 595 width: number; 596 597 /** 598 * Set height. 599 * 600 * @type { number } 601 * @syscap SystemCapability.ArkUI.ArkUI.Full 602 * @since 7 603 */ 604 /** 605 * Set height. 606 * 607 * @type { number } 608 * @syscap SystemCapability.ArkUI.ArkUI.Full 609 * @form 610 * @since 9 611 */ 612 /** 613 * Set height. 614 * 615 * @type { number } 616 * @syscap SystemCapability.ArkUI.ArkUI.Full 617 * @crossplatform 618 * @form 619 * @since 10 620 */ 621 /** 622 * Set height. 623 * 624 * @type { number } 625 * @syscap SystemCapability.ArkUI.ArkUI.Full 626 * @crossplatform 627 * @form 628 * @atomicservice 629 * @since 11 630 */ 631 /** 632 * Set height. 633 * Anonymous Object Rectification. 634 * 635 * @type { number } 636 * @syscap SystemCapability.ArkUI.ArkUI.Full 637 * @crossplatform 638 * @form 639 * @atomicservice 640 * @since 18 641 */ 642 height: number; 643} 644 645/** 646 * Defines the ColorContent. 647 * 648 * @syscap SystemCapability.ArkUI.ArkUI.Full 649 * @crossplatform 650 * @atomicservice 651 * @since 15 652 */ 653declare class ColorContent { 654 /** 655 * Indicates the ColorContent to original value. 656 * 657 * @type { ColorContent } 658 * @readonly 659 * @static 660 * @syscap SystemCapability.ArkUI.ArkUI.Full 661 * @crossplatform 662 * @atomicservice 663 * @since 15 664 */ 665 static readonly ORIGIN: ColorContent; 666} 667 668/** 669 * @extends CommonMethod<ImageAttribute> 670 * @syscap SystemCapability.ArkUI.ArkUI.Full 671 * @since 7 672 */ 673/** 674 * @extends CommonMethod<ImageAttribute> 675 * @syscap SystemCapability.ArkUI.ArkUI.Full 676 * @form 677 * @since 9 678 */ 679/** 680 * @extends CommonMethod<ImageAttribute> 681 * @syscap SystemCapability.ArkUI.ArkUI.Full 682 * @crossplatform 683 * @form 684 * @since 10 685 */ 686/** 687 * @extends CommonMethod<ImageAttribute> 688 * @syscap SystemCapability.ArkUI.ArkUI.Full 689 * @crossplatform 690 * @form 691 * @atomicservice 692 * @since 11 693 */ 694declare class ImageAttribute extends CommonMethod<ImageAttribute> { 695 /** 696 * Placeholder displayed on load 697 * 698 * @param { string | Resource } value 699 * @returns { ImageAttribute } 700 * @syscap SystemCapability.ArkUI.ArkUI.Full 701 * @since 7 702 */ 703 /** 704 * Placeholder displayed on load 705 * 706 * @param { string | Resource } value 707 * @returns { ImageAttribute } 708 * @syscap SystemCapability.ArkUI.ArkUI.Full 709 * @form 710 * @since 9 711 */ 712 /** 713 * Placeholder displayed on load 714 * 715 * @param { string | Resource } value 716 * @returns { ImageAttribute } 717 * @syscap SystemCapability.ArkUI.ArkUI.Full 718 * @crossplatform 719 * @form 720 * @since 10 721 */ 722 /** 723 * Placeholder displayed on load 724 * 725 * @param { string | Resource } value 726 * @returns { ImageAttribute } 727 * @syscap SystemCapability.ArkUI.ArkUI.Full 728 * @crossplatform 729 * @form 730 * @atomicservice 731 * @since 11 732 */ 733 /** 734 * Placeholder displayed on load 735 * 736 * @param { string | Resource | PixelMap } value 737 * @returns { ImageAttribute } 738 * @syscap SystemCapability.ArkUI.ArkUI.Full 739 * @crossplatform 740 * @form 741 * @atomicservice 742 * @since 12 743 */ 744 alt(value: string | Resource | PixelMap): ImageAttribute; 745 746 /** 747 * match Text Direction 748 * 749 * @param { boolean } value 750 * @returns { ImageAttribute } 751 * @syscap SystemCapability.ArkUI.ArkUI.Full 752 * @since 7 753 */ 754 /** 755 * match Text Direction 756 * 757 * @param { boolean } value 758 * @returns { ImageAttribute } 759 * @syscap SystemCapability.ArkUI.ArkUI.Full 760 * @form 761 * @since 9 762 */ 763 /** 764 * match Text Direction 765 * 766 * @param { boolean } value 767 * @returns { ImageAttribute } 768 * @syscap SystemCapability.ArkUI.ArkUI.Full 769 * @crossplatform 770 * @form 771 * @since 10 772 */ 773 /** 774 * match Text Direction 775 * 776 * @param { boolean } value 777 * @returns { ImageAttribute } 778 * @syscap SystemCapability.ArkUI.ArkUI.Full 779 * @crossplatform 780 * @form 781 * @atomicservice 782 * @since 11 783 */ 784 matchTextDirection(value: boolean): ImageAttribute; 785 786 /** 787 * Sets whether the display size of the image follows the source size. 788 * 789 * @param { boolean } value 790 * @returns { ImageAttribute } 791 * @syscap SystemCapability.ArkUI.ArkUI.Full 792 * @since 7 793 */ 794 /** 795 * Sets whether the display size of the image follows the source size. 796 * 797 * @param { boolean } value 798 * @returns { ImageAttribute } 799 * @syscap SystemCapability.ArkUI.ArkUI.Full 800 * @form 801 * @since 9 802 */ 803 /** 804 * Sets whether the display size of the image follows the source size. 805 * 806 * @param { boolean } value 807 * @returns { ImageAttribute } 808 * @syscap SystemCapability.ArkUI.ArkUI.Full 809 * @crossplatform 810 * @form 811 * @since 10 812 */ 813 /** 814 * Sets whether the display size of the image follows the source size. 815 * 816 * @param { boolean } value 817 * @returns { ImageAttribute } 818 * @syscap SystemCapability.ArkUI.ArkUI.Full 819 * @crossplatform 820 * @form 821 * @atomicservice 822 * @since 11 823 */ 824 fitOriginalSize(value: boolean): ImageAttribute; 825 826 /** 827 * fill Color 828 * 829 * @param { ResourceColor } value 830 * @returns { ImageAttribute } 831 * @syscap SystemCapability.ArkUI.ArkUI.Full 832 * @since 7 833 */ 834 /** 835 * fill Color 836 * 837 * @param { ResourceColor } value 838 * @returns { ImageAttribute } 839 * @syscap SystemCapability.ArkUI.ArkUI.Full 840 * @form 841 * @since 9 842 */ 843 /** 844 * fill Color 845 * 846 * @param { ResourceColor } value 847 * @returns { ImageAttribute } 848 * @syscap SystemCapability.ArkUI.ArkUI.Full 849 * @crossplatform 850 * @form 851 * @since 10 852 */ 853 /** 854 * fill Color 855 * 856 * @param { ResourceColor } value 857 * @returns { ImageAttribute } 858 * @syscap SystemCapability.ArkUI.ArkUI.Full 859 * @crossplatform 860 * @form 861 * @atomicservice 862 * @since 11 863 */ 864 fillColor(value: ResourceColor): ImageAttribute; 865 866 /** 867 * fill Color 868 * 869 * @param { ResourceColor | ColorContent } color 870 * @returns { ImageAttribute } 871 * @syscap SystemCapability.ArkUI.ArkUI.Full 872 * @crossplatform 873 * @atomicservice 874 * @since 15 875 */ 876 fillColor(color: ResourceColor | ColorContent): ImageAttribute; 877 878 /** 879 * Sets the zoom type of an image. 880 * 881 * @param { ImageFit } value 882 * @returns { ImageAttribute } 883 * @syscap SystemCapability.ArkUI.ArkUI.Full 884 * @since 7 885 */ 886 /** 887 * Sets the zoom type of an image. 888 * 889 * @param { ImageFit } value 890 * @returns { ImageAttribute } 891 * @syscap SystemCapability.ArkUI.ArkUI.Full 892 * @form 893 * @since 9 894 */ 895 /** 896 * Sets the zoom type of an image. 897 * 898 * @param { ImageFit } value 899 * @returns { ImageAttribute } 900 * @syscap SystemCapability.ArkUI.ArkUI.Full 901 * @crossplatform 902 * @form 903 * @since 10 904 */ 905 /** 906 * Sets the zoom type of an image. 907 * 908 * @param { ImageFit } value 909 * @returns { ImageAttribute } 910 * @syscap SystemCapability.ArkUI.ArkUI.Full 911 * @crossplatform 912 * @form 913 * @atomicservice 914 * @since 11 915 */ 916 objectFit(value: ImageFit): ImageAttribute; 917 918 /** 919 * Sets the matrix for the image. 920 * 921 * @param { ImageMatrix } matrix 922 * @returns { ImageAttribute } 923 * @syscap SystemCapability.ArkUI.ArkUI.Full 924 * @crossplatform 925 * @atomicservice 926 * @since 15 927 */ 928 imageMatrix(matrix: ImageMatrix): ImageAttribute; 929 930 /** 931 * Set the repeat style of the picture 932 * 933 * @param { ImageRepeat } value 934 * @returns { ImageAttribute } 935 * @syscap SystemCapability.ArkUI.ArkUI.Full 936 * @since 7 937 */ 938 /** 939 * Set the repeat style of the picture 940 * 941 * @param { ImageRepeat } value 942 * @returns { ImageAttribute } 943 * @syscap SystemCapability.ArkUI.ArkUI.Full 944 * @form 945 * @since 9 946 */ 947 /** 948 * Set the repeat style of the picture 949 * 950 * @param { ImageRepeat } value 951 * @returns { ImageAttribute } 952 * @syscap SystemCapability.ArkUI.ArkUI.Full 953 * @crossplatform 954 * @form 955 * @since 10 956 */ 957 /** 958 * Set the repeat style of the picture 959 * 960 * @param { ImageRepeat } value 961 * @returns { ImageAttribute } 962 * @syscap SystemCapability.ArkUI.ArkUI.Full 963 * @crossplatform 964 * @form 965 * @atomicservice 966 * @since 11 967 */ 968 objectRepeat(value: ImageRepeat): ImageAttribute; 969 970 /** 971 * Set the auto style of the picture 972 * 973 * @param { boolean } value 974 * @returns { ImageAttribute } 975 * @syscap SystemCapability.ArkUI.ArkUI.Full 976 * @since 7 977 */ 978 /** 979 * Set the auto style of the picture 980 * 981 * @param { boolean } value 982 * @returns { ImageAttribute } 983 * @syscap SystemCapability.ArkUI.ArkUI.Full 984 * @form 985 * @since 9 986 */ 987 /** 988 * Set the auto style of the picture 989 * 990 * @param { boolean } value 991 * @returns { ImageAttribute } 992 * @syscap SystemCapability.ArkUI.ArkUI.Full 993 * @crossplatform 994 * @form 995 * @since 10 996 */ 997 /** 998 * Set the auto style of the picture 999 * 1000 * @param { boolean } value 1001 * @returns { ImageAttribute } 1002 * @syscap SystemCapability.ArkUI.ArkUI.Full 1003 * @crossplatform 1004 * @form 1005 * @atomicservice 1006 * @since 11 1007 */ 1008 autoResize(value: boolean): ImageAttribute; 1009 1010 /** 1011 * Sets the image rendering mode. 1012 * 1013 * @param { ImageRenderMode } value 1014 * @returns { ImageAttribute } 1015 * @syscap SystemCapability.ArkUI.ArkUI.Full 1016 * @since 7 1017 */ 1018 /** 1019 * Sets the image rendering mode. 1020 * 1021 * @param { ImageRenderMode } value 1022 * @returns { ImageAttribute } 1023 * @syscap SystemCapability.ArkUI.ArkUI.Full 1024 * @form 1025 * @since 9 1026 */ 1027 /** 1028 * Sets the image rendering mode. 1029 * 1030 * @param { ImageRenderMode } value 1031 * @returns { ImageAttribute } 1032 * @syscap SystemCapability.ArkUI.ArkUI.Full 1033 * @crossplatform 1034 * @form 1035 * @since 10 1036 */ 1037 /** 1038 * Sets the image rendering mode. 1039 * 1040 * @param { ImageRenderMode } value 1041 * @returns { ImageAttribute } 1042 * @syscap SystemCapability.ArkUI.ArkUI.Full 1043 * @crossplatform 1044 * @form 1045 * @atomicservice 1046 * @since 11 1047 */ 1048 renderMode(value: ImageRenderMode): ImageAttribute; 1049 1050 /** 1051 * Set dynamic range mode of image. 1052 * 1053 * @param { DynamicRangeMode } value - Indicates the resizable options. 1054 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1055 * @syscap SystemCapability.ArkUI.ArkUI.Full 1056 * @atomicservice 1057 * @since 12 1058 */ 1059 dynamicRangeMode(value: DynamicRangeMode): ImageAttribute; 1060 1061 /** 1062 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 1063 * 1064 * @param { ImageInterpolation } value 1065 * @returns { ImageAttribute } 1066 * @syscap SystemCapability.ArkUI.ArkUI.Full 1067 * @since 7 1068 */ 1069 /** 1070 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 1071 * 1072 * @param { ImageInterpolation } value 1073 * @returns { ImageAttribute } 1074 * @syscap SystemCapability.ArkUI.ArkUI.Full 1075 * @form 1076 * @since 9 1077 */ 1078 /** 1079 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 1080 * 1081 * @param { ImageInterpolation } value 1082 * @returns { ImageAttribute } 1083 * @syscap SystemCapability.ArkUI.ArkUI.Full 1084 * @crossplatform 1085 * @form 1086 * @since 10 1087 */ 1088 /** 1089 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 1090 * 1091 * @param { ImageInterpolation } value 1092 * @returns { ImageAttribute } 1093 * @syscap SystemCapability.ArkUI.ArkUI.Full 1094 * @crossplatform 1095 * @form 1096 * @atomicservice 1097 * @since 11 1098 */ 1099 interpolation(value: ImageInterpolation): ImageAttribute; 1100 1101 /** 1102 * Specifies the picture decoding size. 1103 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1104 * 1105 * @param { object } value 1106 * @returns { ImageAttribute } 1107 * @syscap SystemCapability.ArkUI.ArkUI.Full 1108 * @since 7 1109 */ 1110 /** 1111 * Specifies the picture decoding size. 1112 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1113 * 1114 * @param { object } value 1115 * @returns { ImageAttribute } 1116 * @syscap SystemCapability.ArkUI.ArkUI.Full 1117 * @form 1118 * @since 9 1119 */ 1120 /** 1121 * Specifies the picture decoding size. 1122 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1123 * 1124 * @param { object } value 1125 * @returns { ImageAttribute } 1126 * @syscap SystemCapability.ArkUI.ArkUI.Full 1127 * @crossplatform 1128 * @form 1129 * @since 10 1130 */ 1131 /** 1132 * Specifies the picture decoding size. 1133 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1134 * 1135 * @param { object } value 1136 * @returns { ImageAttribute } 1137 * @syscap SystemCapability.ArkUI.ArkUI.Full 1138 * @crossplatform 1139 * @form 1140 * @atomicservice 1141 * @since 11 1142 */ 1143 /** 1144 * Specifies the picture decoding size. 1145 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1146 * Anonymous Object Rectification. 1147 * 1148 * @param { ImageSourceSize } value - Image source size. 1149 * @returns { ImageAttribute } 1150 * @syscap SystemCapability.ArkUI.ArkUI.Full 1151 * @crossplatform 1152 * @form 1153 * @atomicservice 1154 * @since 18 1155 */ 1156 sourceSize(value: ImageSourceSize): ImageAttribute; 1157 1158 /** 1159 * Sets the synchronous or asynchronous mode for image loading. 1160 * The default parameter type is bool, and the default value is false. 1161 * 1162 * @param { boolean } value 1163 * @returns { ImageAttribute } 1164 * @syscap SystemCapability.ArkUI.ArkUI.Full 1165 * @since 8 1166 */ 1167 /** 1168 * Sets the synchronous or asynchronous mode for image loading. 1169 * The default parameter type is bool, and the default value is false. 1170 * 1171 * @param { boolean } value 1172 * @returns { ImageAttribute } 1173 * @syscap SystemCapability.ArkUI.ArkUI.Full 1174 * @form 1175 * @since 9 1176 */ 1177 /** 1178 * Sets the synchronous or asynchronous mode for image loading. 1179 * The default parameter type is bool, and the default value is false. 1180 * 1181 * @param { boolean } value 1182 * @returns { ImageAttribute } 1183 * @syscap SystemCapability.ArkUI.ArkUI.Full 1184 * @crossplatform 1185 * @form 1186 * @since 10 1187 */ 1188 /** 1189 * Sets the synchronous or asynchronous mode for image loading. 1190 * The default parameter type is bool, and the default value is false. 1191 * 1192 * @param { boolean } value 1193 * @returns { ImageAttribute } 1194 * @syscap SystemCapability.ArkUI.ArkUI.Full 1195 * @crossplatform 1196 * @form 1197 * @atomicservice 1198 * @since 11 1199 */ 1200 syncLoad(value: boolean): ImageAttribute; 1201 1202 /** 1203 * Sets the color filter effect on the image. 1204 * 1205 * @param { ColorFilter } value ColorFilter object. 1206 * @returns { ImageAttribute } 1207 * @syscap SystemCapability.ArkUI.ArkUI.Full 1208 * @form 1209 * @since 9 1210 */ 1211 /** 1212 * Sets the color filter effect on the image. 1213 * 1214 * @param { ColorFilter } value ColorFilter object. 1215 * @returns { ImageAttribute } 1216 * @syscap SystemCapability.ArkUI.ArkUI.Full 1217 * @crossplatform 1218 * @form 1219 * @since 10 1220 */ 1221 /** 1222 * Sets the color filter effect on the image. 1223 * 1224 * @param { ColorFilter } value ColorFilter object. 1225 * @returns { ImageAttribute } 1226 * @syscap SystemCapability.ArkUI.ArkUI.Full 1227 * @crossplatform 1228 * @form 1229 * @atomicservice 1230 * @since 11 1231 */ 1232 /** 1233 * Sets the color filter effect on the image. 1234 * 1235 * @param { ColorFilter | DrawingColorFilter } value ColorFilter object. 1236 * @returns { ImageAttribute } 1237 * @syscap SystemCapability.ArkUI.ArkUI.Full 1238 * @crossplatform 1239 * @form 1240 * @atomicservice 1241 * @since 12 1242 */ 1243 colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute; 1244 1245 /** 1246 * Allow replication. 1247 * 1248 * @param { CopyOptions } value 1249 * @returns { ImageAttribute } 1250 * @syscap SystemCapability.ArkUI.ArkUI.Full 1251 * @form 1252 * @since 9 1253 */ 1254 /** 1255 * Allow replication. 1256 * 1257 * @param { CopyOptions } value 1258 * @returns { ImageAttribute } 1259 * @syscap SystemCapability.ArkUI.ArkUI.Full 1260 * @crossplatform 1261 * @form 1262 * @since 10 1263 */ 1264 /** 1265 * Allow replication. 1266 * 1267 * @param { CopyOptions } value 1268 * @returns { ImageAttribute } 1269 * @syscap SystemCapability.ArkUI.ArkUI.Full 1270 * @crossplatform 1271 * @form 1272 * @atomicservice 1273 * @since 11 1274 */ 1275 copyOption(value: CopyOptions): ImageAttribute; 1276 1277 /** 1278 * Enable image dragging. 1279 * Default value is false. 1280 * 1281 * @param { boolean } value 1282 * @returns { ImageAttribute } 1283 * @syscap SystemCapability.ArkUI.ArkUI.Full 1284 * @since 9 1285 */ 1286 /** 1287 * Enable image dragging. 1288 * Default value is true. 1289 * 1290 * @param { boolean } value 1291 * @returns { ImageAttribute } 1292 * @syscap SystemCapability.ArkUI.ArkUI.Full 1293 * @atomicservice 1294 * @since 11 1295 */ 1296 /** 1297 * Enable image dragging. 1298 * Default value is true. 1299 * 1300 * @param { boolean } value 1301 * @returns { ImageAttribute } 1302 * @syscap SystemCapability.ArkUI.ArkUI.Full 1303 * @crossplatform 1304 * @atomicservice 1305 * @since 18 1306 */ 1307 draggable(value: boolean): ImageAttribute; 1308 1309 /** 1310 * Defines the PointLight 1311 * 1312 * @param { PointLightStyle } value - The point light style. 1313 * @returns { ImageAttribute } The attribute of the image. 1314 * @syscap SystemCapability.ArkUI.ArkUI.Full 1315 * @systemapi 1316 * @since 11 1317 */ 1318 pointLight(value: PointLightStyle): ImageAttribute; 1319 1320 /** 1321 * SVG anti-aliasing. 1322 * The range of the parameter values is (0.333, 1.333]. 1323 * Default value is 0.0. 1324 * 1325 * @param { number } value - The degree of anti-aliasing. 1326 * @returns { ImageAttribute } The attribute of the image. 1327 * @syscap SystemCapability.ArkUI.ArkUI.Full 1328 * @systemapi 1329 * @since 11 1330 */ 1331 edgeAntialiasing(value: number): ImageAttribute; 1332 1333 /** 1334 * This callback is triggered when an image is successfully loaded. 1335 * The size of the image source that is successfully loaded is returned, in pixels. 1336 * 1337 * @param { function } callback 1338 * @returns { ImageAttribute } 1339 * @syscap SystemCapability.ArkUI.ArkUI.Full 1340 * @since 7 1341 */ 1342 /** 1343 * This callback is triggered when an image is successfully loaded. 1344 * The size of the image source that is successfully loaded is returned, in pixels. 1345 * 1346 * @param { function } callback 1347 * @returns { ImageAttribute } 1348 * @syscap SystemCapability.ArkUI.ArkUI.Full 1349 * @form 1350 * @since 9 1351 */ 1352 /** 1353 * This callback is triggered when an image is successfully loaded. 1354 * The size of the image source that is successfully loaded is returned, in pixels. 1355 * 1356 * @param { function } callback 1357 * @returns { ImageAttribute } 1358 * @syscap SystemCapability.ArkUI.ArkUI.Full 1359 * @crossplatform 1360 * @form 1361 * @since 10 1362 */ 1363 /** 1364 * This callback is triggered when an image is successfully loaded. 1365 * The size of the image source that is successfully loaded is returned, in pixels. 1366 * 1367 * @param { function } callback 1368 * @returns { ImageAttribute } 1369 * @syscap SystemCapability.ArkUI.ArkUI.Full 1370 * @crossplatform 1371 * @form 1372 * @atomicservice 1373 * @since 11 1374 */ 1375 onComplete( 1376 callback: (event?: { 1377 /** 1378 * The width of the image source. 1379 * 1380 * @type { number } 1381 * @syscap SystemCapability.ArkUI.ArkUI.Full 1382 * @since 7 1383 */ 1384 /** 1385 * The width of the image source. 1386 * 1387 * @type { number } 1388 * @syscap SystemCapability.ArkUI.ArkUI.Full 1389 * @since 9 1390 * @form 1391 */ 1392 /** 1393 * The width of the image source. 1394 * 1395 * @type { number } 1396 * @syscap SystemCapability.ArkUI.ArkUI.Full 1397 * @crossplatform 1398 * @since 10 1399 * @form 1400 */ 1401 /** 1402 * The width of the image source. 1403 * 1404 * @type { number } 1405 * @syscap SystemCapability.ArkUI.ArkUI.Full 1406 * @crossplatform 1407 * @atomicservice 1408 * @since 11 1409 * @form 1410 */ 1411 width: number; 1412 /** 1413 * The height of the image source. 1414 * 1415 * @type { number } 1416 * @syscap SystemCapability.ArkUI.ArkUI.Full 1417 * @since 7 1418 */ 1419 /** 1420 * The height of the image source. 1421 * 1422 * @type { number } 1423 * @syscap SystemCapability.ArkUI.ArkUI.Full 1424 * @since 9 1425 * @form 1426 */ 1427 /** 1428 * The height of the image source. 1429 * 1430 * @type { number } 1431 * @syscap SystemCapability.ArkUI.ArkUI.Full 1432 * @crossplatform 1433 * @since 10 1434 * @form 1435 */ 1436 /** 1437 * The height of the image source. 1438 * 1439 * @type { number } 1440 * @syscap SystemCapability.ArkUI.ArkUI.Full 1441 * @crossplatform 1442 * @atomicservice 1443 * @since 11 1444 * @form 1445 */ 1446 height: number; 1447 /** 1448 * The width of the component source. 1449 * 1450 * @type { number } 1451 * @syscap SystemCapability.ArkUI.ArkUI.Full 1452 * @since 7 1453 */ 1454 /** 1455 * The width of the component source. 1456 * 1457 * @type { number } 1458 * @syscap SystemCapability.ArkUI.ArkUI.Full 1459 * @since 9 1460 * @form 1461 */ 1462 /** 1463 * The width of the component source. 1464 * 1465 * @type { number } 1466 * @syscap SystemCapability.ArkUI.ArkUI.Full 1467 * @crossplatform 1468 * @since 10 1469 * @form 1470 */ 1471 /** 1472 * The width of the component source. 1473 * 1474 * @type { number } 1475 * @syscap SystemCapability.ArkUI.ArkUI.Full 1476 * @crossplatform 1477 * @atomicservice 1478 * @since 11 1479 * @form 1480 */ 1481 componentWidth: number; 1482 /** 1483 * The height of the component source. 1484 * 1485 * @type { number } 1486 * @syscap SystemCapability.ArkUI.ArkUI.Full 1487 * @since 7 1488 */ 1489 /** 1490 * The height of the component source. 1491 * 1492 * @type { number } 1493 * @syscap SystemCapability.ArkUI.ArkUI.Full 1494 * @since 9 1495 * @form 1496 */ 1497 /** 1498 * The height of the component source. 1499 * 1500 * @type { number } 1501 * @syscap SystemCapability.ArkUI.ArkUI.Full 1502 * @crossplatform 1503 * @since 10 1504 * @form 1505 */ 1506 /** 1507 * The height of the component source. 1508 * 1509 * @type { number } 1510 * @syscap SystemCapability.ArkUI.ArkUI.Full 1511 * @crossplatform 1512 * @atomicservice 1513 * @since 11 1514 * @form 1515 */ 1516 componentHeight: number; 1517 /** 1518 * The value of the status of the image being loaded successfully. 1519 * If the returned status value is 0, the image data is successfully loaded. 1520 * If the returned status value is 1, the image is successfully decoded. 1521 * 1522 * @type { number } 1523 * @syscap SystemCapability.ArkUI.ArkUI.Full 1524 * @since 7 1525 */ 1526 /** 1527 * The value of the status of the image being loaded successfully. 1528 * If the returned status value is 0, the image data is successfully loaded. 1529 * If the returned status value is 1, the image is successfully decoded. 1530 * 1531 * @type { number } 1532 * @syscap SystemCapability.ArkUI.ArkUI.Full 1533 * @since 9 1534 * @form 1535 */ 1536 /** 1537 * The value of the status of the image being loaded successfully. 1538 * If the returned status value is 0, the image data is successfully loaded. 1539 * If the returned status value is 1, the image is successfully decoded. 1540 * 1541 * @type { number } 1542 * @syscap SystemCapability.ArkUI.ArkUI.Full 1543 * @crossplatform 1544 * @since 10 1545 * @form 1546 */ 1547 /** 1548 * The value of the status of the image being loaded successfully. 1549 * If the returned status value is 0, the image data is successfully loaded. 1550 * If the returned status value is 1, the image is successfully decoded. 1551 * 1552 * @type { number } 1553 * @syscap SystemCapability.ArkUI.ArkUI.Full 1554 * @crossplatform 1555 * @atomicservice 1556 * @since 11 1557 * @form 1558 */ 1559 loadingStatus: number; 1560 /** 1561 * The width of the picture that is actually drawn. 1562 * 1563 * @type { number } 1564 * @syscap SystemCapability.ArkUI.ArkUI.Full 1565 * @crossplatform 1566 * @since 10 1567 * @form 1568 */ 1569 /** 1570 * The width of the picture that is actually drawn. 1571 * 1572 * @type { number } 1573 * @syscap SystemCapability.ArkUI.ArkUI.Full 1574 * @crossplatform 1575 * @atomicservice 1576 * @since 11 1577 * @form 1578 */ 1579 contentWidth: number; 1580 /** 1581 * The height of the picture that is actually drawn. 1582 * 1583 * @type { number } 1584 * @syscap SystemCapability.ArkUI.ArkUI.Full 1585 * @crossplatform 1586 * @since 10 1587 * @form 1588 */ 1589 /** 1590 * The height of the picture that is actually drawn. 1591 * 1592 * @type { number } 1593 * @syscap SystemCapability.ArkUI.ArkUI.Full 1594 * @crossplatform 1595 * @atomicservice 1596 * @since 11 1597 * @form 1598 */ 1599 contentHeight: number; 1600 /** 1601 * The actual draw is offset from the x-axis of the component itself. 1602 * 1603 * @type { number } 1604 * @syscap SystemCapability.ArkUI.ArkUI.Full 1605 * @crossplatform 1606 * @since 10 1607 * @form 1608 */ 1609 /** 1610 * The actual draw is offset from the x-axis of the component itself. 1611 * 1612 * @type { number } 1613 * @syscap SystemCapability.ArkUI.ArkUI.Full 1614 * @crossplatform 1615 * @atomicservice 1616 * @since 11 1617 * @form 1618 */ 1619 contentOffsetX: number; 1620 /** 1621 * The actual draw is offset from the y-axis of the component itself. 1622 * 1623 * @type { number } 1624 * @syscap SystemCapability.ArkUI.ArkUI.Full 1625 * @crossplatform 1626 * @since 10 1627 * @form 1628 */ 1629 /** 1630 * The actual draw is offset from the y-axis of the component itself. 1631 * 1632 * @type { number } 1633 * @syscap SystemCapability.ArkUI.ArkUI.Full 1634 * @crossplatform 1635 * @atomicservice 1636 * @since 11 1637 * @form 1638 */ 1639 contentOffsetY: number; 1640 }) => void, 1641 ): ImageAttribute; 1642 1643 /** 1644 * This callback is triggered when an exception occurs during image loading. 1645 * The field of "message" carries the detailed information of failed image loading. 1646 * 1647 * @param { function } callback 1648 * @returns { ImageAttribute } 1649 * @syscap SystemCapability.ArkUI.ArkUI.Full 1650 * @form 1651 * @since 9 1652 */ 1653 /** 1654 * This callback is triggered when an exception occurs during image loading. 1655 * The field of "message" carries the detailed information of failed image loading. 1656 * 1657 * @param { function } callback 1658 * @returns { ImageAttribute } 1659 * @syscap SystemCapability.ArkUI.ArkUI.Full 1660 * @crossplatform 1661 * @form 1662 * @since 10 1663 */ 1664 /** 1665 * This callback is triggered when an exception occurs during image loading. 1666 * The field of "message" carries the detailed information of failed image loading. 1667 * 1668 * @param { ImageErrorCallback } callback 1669 * @returns { ImageAttribute } 1670 * @syscap SystemCapability.ArkUI.ArkUI.Full 1671 * @crossplatform 1672 * @form 1673 * @atomicservice 1674 * @since 11 1675 */ 1676 onError(callback: ImageErrorCallback): ImageAttribute; 1677 1678 /** 1679 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1680 * If the svg image is a wireless loop image, this callback is not triggered. 1681 * 1682 * @param { function } event 1683 * @returns { ImageAttribute } 1684 * @syscap SystemCapability.ArkUI.ArkUI.Full 1685 * @since 7 1686 */ 1687 /** 1688 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1689 * If the svg image is a wireless loop image, this callback is not triggered. 1690 * 1691 * @param { function } event 1692 * @returns { ImageAttribute } 1693 * @syscap SystemCapability.ArkUI.ArkUI.Full 1694 * @form 1695 * @since 9 1696 */ 1697 /** 1698 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1699 * If the svg image is a wireless loop image, this callback is not triggered. 1700 * 1701 * @param { function } event 1702 * @returns { ImageAttribute } 1703 * @syscap SystemCapability.ArkUI.ArkUI.Full 1704 * @crossplatform 1705 * @form 1706 * @since 10 1707 */ 1708 /** 1709 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1710 * If the svg image is a wireless loop image, this callback is not triggered. 1711 * 1712 * @param { function } event 1713 * @returns { ImageAttribute } 1714 * @syscap SystemCapability.ArkUI.ArkUI.Full 1715 * @crossplatform 1716 * @form 1717 * @atomicservice 1718 * @since 11 1719 */ 1720 onFinish(event: () => void): ImageAttribute; 1721 1722 /** 1723 * Enable image analyzer. 1724 * 1725 * @param { boolean} enable 1726 * @returns { ImageAttribute } 1727 * @syscap SystemCapability.ArkUI.ArkUI.Full 1728 * @since 11 1729 */ 1730 /** 1731 * Enable image analyzer. 1732 * 1733 * @param { boolean} enable 1734 * @returns { ImageAttribute } 1735 * @syscap SystemCapability.ArkUI.ArkUI.Full 1736 * @atomicservice 1737 * @since 12 1738 */ 1739 enableAnalyzer(enable: boolean): ImageAttribute; 1740 1741 /** 1742 * Set image analyzer with config. 1743 * 1744 * @param { ImageAnalyzerConfig } config 1745 * @returns { ImageAttribute } 1746 * @syscap SystemCapability.ArkUI.ArkUI.Full 1747 * @systemapi 1748 * @since 11 1749 */ 1750 analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute; 1751 1752 /** 1753 * Set image resizable options. 1754 * 1755 * @param { ResizableOptions } value - Indicates the resizable options. 1756 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1757 * @syscap SystemCapability.ArkUI.ArkUI.Full 1758 * @crossplatform 1759 * @since 11 1760 */ 1761 /** 1762 * Set image resizable options. 1763 * 1764 * @param { ResizableOptions } value - Indicates the resizable options. 1765 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1766 * @syscap SystemCapability.ArkUI.ArkUI.Full 1767 * @crossplatform 1768 * @atomicservice 1769 * @since 12 1770 */ 1771 resizable(value: ResizableOptions): ImageAttribute; 1772 1773 /** 1774 * Set the quality enhancement level of image. 1775 * 1776 * @param { ResolutionQuality } imageQuality 1777 * @returns { ImageAttribute } 1778 * @syscap SystemCapability.ArkUI.ArkUI.Full 1779 * @systemapi 1780 * @since 12 1781 */ 1782 enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute; 1783 1784 /** 1785 * Whether to support sensitive privacy information 1786 * 1787 * @param { boolean } supported - Whether to support sensitive privacy information. 1788 * @returns { ImageAttribute } 1789 * @syscap SystemCapability.ArkUI.ArkUI.Full 1790 * @form 1791 * @atomicservice 1792 * @since 12 1793 */ 1794 privacySensitive(supported: boolean): ImageAttribute; 1795 1796 /** 1797 * Set the rotation angle of image. 1798 * 1799 * @param { ImageRotateOrientation } orientation 1800 * @returns { ImageAttribute } 1801 * @syscap SystemCapability.ArkUI.ArkUI.Full 1802 * @crossplatform 1803 * @atomicservice 1804 * @since 14 1805 */ 1806 orientation(orientation: ImageRotateOrientation) : ImageAttribute; 1807} 1808 1809/** 1810 * Defines Image Component. 1811 * 1812 * @syscap SystemCapability.ArkUI.ArkUI.Full 1813 * @since 7 1814 */ 1815/** 1816 * Defines Image Component. 1817 * 1818 * @syscap SystemCapability.ArkUI.ArkUI.Full 1819 * @form 1820 * @since 9 1821 */ 1822/** 1823 * Defines Image Component. 1824 * 1825 * @syscap SystemCapability.ArkUI.ArkUI.Full 1826 * @crossplatform 1827 * @form 1828 * @since 10 1829 */ 1830/** 1831 * Defines Image Component. 1832 * 1833 * @syscap SystemCapability.ArkUI.ArkUI.Full 1834 * @crossplatform 1835 * @form 1836 * @atomicservice 1837 * @since 11 1838 */ 1839declare const Image: ImageInterface; 1840 1841/** 1842 * Defines Image Component instance. 1843 * 1844 * @syscap SystemCapability.ArkUI.ArkUI.Full 1845 * @since 7 1846 */ 1847/** 1848 * Defines Image Component instance. 1849 * 1850 * @syscap SystemCapability.ArkUI.ArkUI.Full 1851 * @form 1852 * @since 9 1853 */ 1854/** 1855 * Defines Image Component instance. 1856 * 1857 * @syscap SystemCapability.ArkUI.ArkUI.Full 1858 * @crossplatform 1859 * @form 1860 * @since 10 1861 */ 1862/** 1863 * Defines Image Component instance. 1864 * 1865 * @syscap SystemCapability.ArkUI.ArkUI.Full 1866 * @crossplatform 1867 * @form 1868 * @atomicservice 1869 * @since 11 1870 */ 1871declare const ImageInstance: ImageAttribute; 1872 1873/** 1874 * @type ImageErrorCallback 1875 * @syscap SystemCapability.ArkUI.ArkUI.Full 1876 * @form 1877 * @since 9 1878 */ 1879/** 1880 * @type ImageErrorCallback 1881 * @syscap SystemCapability.ArkUI.ArkUI.Full 1882 * @crossplatform 1883 * @form 1884 * @since 10 1885 */ 1886/** 1887 * @typedef { function } ImageErrorCallback 1888 * @param { ImageError } error 1889 * @syscap SystemCapability.ArkUI.ArkUI.Full 1890 * @crossplatform 1891 * @form 1892 * @atomicservice 1893 * @since 11 1894 */ 1895type ImageErrorCallback = (error: ImageError) => void; 1896 1897/** 1898 * @interface ImageError 1899 * @syscap SystemCapability.ArkUI.ArkUI.Full 1900 * @form 1901 * @since 9 1902 */ 1903/** 1904 * @interface ImageError 1905 * @syscap SystemCapability.ArkUI.ArkUI.Full 1906 * @crossplatform 1907 * @form 1908 * @since 10 1909 */ 1910/** 1911 * @interface ImageError 1912 * @syscap SystemCapability.ArkUI.ArkUI.Full 1913 * @crossplatform 1914 * @form 1915 * @atomicservice 1916 * @since 11 1917 */ 1918declare interface ImageError { 1919 /** 1920 * Component width. 1921 * 1922 * @type { number } 1923 * @syscap SystemCapability.ArkUI.ArkUI.Full 1924 * @form 1925 * @since 9 1926 */ 1927 /** 1928 * Component width. 1929 * 1930 * @type { number } 1931 * @syscap SystemCapability.ArkUI.ArkUI.Full 1932 * @crossplatform 1933 * @form 1934 * @since 10 1935 */ 1936 /** 1937 * Component width. 1938 * 1939 * @type { number } 1940 * @syscap SystemCapability.ArkUI.ArkUI.Full 1941 * @crossplatform 1942 * @form 1943 * @atomicservice 1944 * @since 11 1945 */ 1946 componentWidth: number; 1947 1948 /** 1949 * Component height. 1950 * 1951 * @type { number } 1952 * @syscap SystemCapability.ArkUI.ArkUI.Full 1953 * @form 1954 * @since 9 1955 */ 1956 /** 1957 * Component height. 1958 * 1959 * @type { number } 1960 * @syscap SystemCapability.ArkUI.ArkUI.Full 1961 * @crossplatform 1962 * @form 1963 * @since 10 1964 */ 1965 /** 1966 * Component height. 1967 * 1968 * @type { number } 1969 * @syscap SystemCapability.ArkUI.ArkUI.Full 1970 * @crossplatform 1971 * @form 1972 * @atomicservice 1973 * @since 11 1974 */ 1975 componentHeight: number; 1976 1977 /** 1978 * Message. 1979 * 1980 * @type { string } 1981 * @syscap SystemCapability.ArkUI.ArkUI.Full 1982 * @crossplatform 1983 * @form 1984 * @since 10 1985 */ 1986 /** 1987 * Message. 1988 * 1989 * @type { string } 1990 * @syscap SystemCapability.ArkUI.ArkUI.Full 1991 * @crossplatform 1992 * @form 1993 * @atomicservice 1994 * @since 11 1995 */ 1996 message: string 1997} 1998 1999/** 2000 * Image resizable options 2001 * 2002 * @interface ResizableOptions 2003 * @syscap SystemCapability.ArkUI.ArkUI.Full 2004 * @crossplatform 2005 * @since 11 2006 */ 2007/** 2008 * Image resizable options 2009 * 2010 * @interface ResizableOptions 2011 * @syscap SystemCapability.ArkUI.ArkUI.Full 2012 * @crossplatform 2013 * @atomicservice 2014 * @since 12 2015 */ 2016declare interface ResizableOptions { 2017 /** 2018 * Image slice widths. 2019 * 2020 * @type { ?EdgeWidths } 2021 * @syscap SystemCapability.ArkUI.ArkUI.Full 2022 * @crossplatform 2023 * @since 11 2024 */ 2025 /** 2026 * Image slice widths. 2027 * 2028 * @type { ?EdgeWidths } 2029 * @syscap SystemCapability.ArkUI.ArkUI.Full 2030 * @crossplatform 2031 * @atomicservice 2032 * @since 12 2033 */ 2034 slice?: EdgeWidths; 2035 2036 /** 2037 * Image lattice. 2038 * 2039 * @type { ?DrawingLattice } 2040 * @syscap SystemCapability.ArkUI.ArkUI.Full 2041 * @crossplatform 2042 * @atomicservice 2043 * @since 12 2044 */ 2045 lattice?: DrawingLattice; 2046} 2047