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 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 the ColorContent. 540 * 541 * @syscap SystemCapability.ArkUI.ArkUI.Full 542 * @crossplatform 543 * @atomicservice 544 * @since 15 545 */ 546declare class ColorContent { 547 /** 548 * Indicates the ColorContent to original value. 549 * 550 * @type { ColorContent } 551 * @readonly 552 * @static 553 * @syscap SystemCapability.ArkUI.ArkUI.Full 554 * @crossplatform 555 * @atomicservice 556 * @since 15 557 */ 558 static readonly ORIGIN: ColorContent; 559} 560 561/** 562 * @extends CommonMethod<ImageAttribute> 563 * @syscap SystemCapability.ArkUI.ArkUI.Full 564 * @since 7 565 */ 566/** 567 * @extends CommonMethod<ImageAttribute> 568 * @syscap SystemCapability.ArkUI.ArkUI.Full 569 * @form 570 * @since 9 571 */ 572/** 573 * @extends CommonMethod<ImageAttribute> 574 * @syscap SystemCapability.ArkUI.ArkUI.Full 575 * @crossplatform 576 * @form 577 * @since 10 578 */ 579/** 580 * @extends CommonMethod<ImageAttribute> 581 * @syscap SystemCapability.ArkUI.ArkUI.Full 582 * @crossplatform 583 * @form 584 * @atomicservice 585 * @since 11 586 */ 587declare class ImageAttribute extends CommonMethod<ImageAttribute> { 588 /** 589 * Placeholder displayed on load 590 * 591 * @param { string | Resource } value 592 * @returns { ImageAttribute } 593 * @syscap SystemCapability.ArkUI.ArkUI.Full 594 * @since 7 595 */ 596 /** 597 * Placeholder displayed on load 598 * 599 * @param { string | Resource } value 600 * @returns { ImageAttribute } 601 * @syscap SystemCapability.ArkUI.ArkUI.Full 602 * @form 603 * @since 9 604 */ 605 /** 606 * Placeholder displayed on load 607 * 608 * @param { string | Resource } value 609 * @returns { ImageAttribute } 610 * @syscap SystemCapability.ArkUI.ArkUI.Full 611 * @crossplatform 612 * @form 613 * @since 10 614 */ 615 /** 616 * Placeholder displayed on load 617 * 618 * @param { string | Resource } value 619 * @returns { ImageAttribute } 620 * @syscap SystemCapability.ArkUI.ArkUI.Full 621 * @crossplatform 622 * @form 623 * @atomicservice 624 * @since 11 625 */ 626 /** 627 * Placeholder displayed on load 628 * 629 * @param { string | Resource | PixelMap } value 630 * @returns { ImageAttribute } 631 * @syscap SystemCapability.ArkUI.ArkUI.Full 632 * @crossplatform 633 * @form 634 * @atomicservice 635 * @since 12 636 */ 637 alt(value: string | Resource | PixelMap): ImageAttribute; 638 639 /** 640 * match Text Direction 641 * 642 * @param { boolean } value 643 * @returns { ImageAttribute } 644 * @syscap SystemCapability.ArkUI.ArkUI.Full 645 * @since 7 646 */ 647 /** 648 * match Text Direction 649 * 650 * @param { boolean } value 651 * @returns { ImageAttribute } 652 * @syscap SystemCapability.ArkUI.ArkUI.Full 653 * @form 654 * @since 9 655 */ 656 /** 657 * match Text Direction 658 * 659 * @param { boolean } value 660 * @returns { ImageAttribute } 661 * @syscap SystemCapability.ArkUI.ArkUI.Full 662 * @crossplatform 663 * @form 664 * @since 10 665 */ 666 /** 667 * match Text Direction 668 * 669 * @param { boolean } value 670 * @returns { ImageAttribute } 671 * @syscap SystemCapability.ArkUI.ArkUI.Full 672 * @crossplatform 673 * @form 674 * @atomicservice 675 * @since 11 676 */ 677 matchTextDirection(value: boolean): ImageAttribute; 678 679 /** 680 * Sets whether the display size of the image follows the source size. 681 * 682 * @param { boolean } value 683 * @returns { ImageAttribute } 684 * @syscap SystemCapability.ArkUI.ArkUI.Full 685 * @since 7 686 */ 687 /** 688 * Sets whether the display size of the image follows the source size. 689 * 690 * @param { boolean } value 691 * @returns { ImageAttribute } 692 * @syscap SystemCapability.ArkUI.ArkUI.Full 693 * @form 694 * @since 9 695 */ 696 /** 697 * Sets whether the display size of the image follows the source size. 698 * 699 * @param { boolean } value 700 * @returns { ImageAttribute } 701 * @syscap SystemCapability.ArkUI.ArkUI.Full 702 * @crossplatform 703 * @form 704 * @since 10 705 */ 706 /** 707 * Sets whether the display size of the image follows the source size. 708 * 709 * @param { boolean } value 710 * @returns { ImageAttribute } 711 * @syscap SystemCapability.ArkUI.ArkUI.Full 712 * @crossplatform 713 * @form 714 * @atomicservice 715 * @since 11 716 */ 717 fitOriginalSize(value: boolean): ImageAttribute; 718 719 /** 720 * fill Color 721 * 722 * @param { ResourceColor } value 723 * @returns { ImageAttribute } 724 * @syscap SystemCapability.ArkUI.ArkUI.Full 725 * @since 7 726 */ 727 /** 728 * fill Color 729 * 730 * @param { ResourceColor } value 731 * @returns { ImageAttribute } 732 * @syscap SystemCapability.ArkUI.ArkUI.Full 733 * @form 734 * @since 9 735 */ 736 /** 737 * fill Color 738 * 739 * @param { ResourceColor } value 740 * @returns { ImageAttribute } 741 * @syscap SystemCapability.ArkUI.ArkUI.Full 742 * @crossplatform 743 * @form 744 * @since 10 745 */ 746 /** 747 * fill Color 748 * 749 * @param { ResourceColor } value 750 * @returns { ImageAttribute } 751 * @syscap SystemCapability.ArkUI.ArkUI.Full 752 * @crossplatform 753 * @form 754 * @atomicservice 755 * @since 11 756 */ 757 fillColor(value: ResourceColor): ImageAttribute; 758 759 /** 760 * fill Color 761 * 762 * @param { ResourceColor | ColorContent } color 763 * @returns { ImageAttribute } 764 * @syscap SystemCapability.ArkUI.ArkUI.Full 765 * @crossplatform 766 * @atomicservice 767 * @since 15 768 */ 769 fillColor(color: ResourceColor | ColorContent): ImageAttribute; 770 771 /** 772 * Sets the zoom type of an image. 773 * 774 * @param { ImageFit } value 775 * @returns { ImageAttribute } 776 * @syscap SystemCapability.ArkUI.ArkUI.Full 777 * @since 7 778 */ 779 /** 780 * Sets the zoom type of an image. 781 * 782 * @param { ImageFit } value 783 * @returns { ImageAttribute } 784 * @syscap SystemCapability.ArkUI.ArkUI.Full 785 * @form 786 * @since 9 787 */ 788 /** 789 * Sets the zoom type of an image. 790 * 791 * @param { ImageFit } value 792 * @returns { ImageAttribute } 793 * @syscap SystemCapability.ArkUI.ArkUI.Full 794 * @crossplatform 795 * @form 796 * @since 10 797 */ 798 /** 799 * Sets the zoom type of an image. 800 * 801 * @param { ImageFit } value 802 * @returns { ImageAttribute } 803 * @syscap SystemCapability.ArkUI.ArkUI.Full 804 * @crossplatform 805 * @form 806 * @atomicservice 807 * @since 11 808 */ 809 objectFit(value: ImageFit): ImageAttribute; 810 811 /** 812 * Sets the matrix for the image. 813 * 814 * @param { ImageMatrix } matrix 815 * @returns { ImageAttribute } 816 * @syscap SystemCapability.ArkUI.ArkUI.Full 817 * @crossplatform 818 * @atomicservice 819 * @since 15 820 */ 821 imageMatrix(matrix: ImageMatrix): ImageAttribute; 822 823 /** 824 * Set the repeat style of the picture 825 * 826 * @param { ImageRepeat } value 827 * @returns { ImageAttribute } 828 * @syscap SystemCapability.ArkUI.ArkUI.Full 829 * @since 7 830 */ 831 /** 832 * Set the repeat style of the picture 833 * 834 * @param { ImageRepeat } value 835 * @returns { ImageAttribute } 836 * @syscap SystemCapability.ArkUI.ArkUI.Full 837 * @form 838 * @since 9 839 */ 840 /** 841 * Set the repeat style of the picture 842 * 843 * @param { ImageRepeat } value 844 * @returns { ImageAttribute } 845 * @syscap SystemCapability.ArkUI.ArkUI.Full 846 * @crossplatform 847 * @form 848 * @since 10 849 */ 850 /** 851 * Set the repeat style of the picture 852 * 853 * @param { ImageRepeat } value 854 * @returns { ImageAttribute } 855 * @syscap SystemCapability.ArkUI.ArkUI.Full 856 * @crossplatform 857 * @form 858 * @atomicservice 859 * @since 11 860 */ 861 objectRepeat(value: ImageRepeat): ImageAttribute; 862 863 /** 864 * Set the auto style of the picture 865 * 866 * @param { boolean } value 867 * @returns { ImageAttribute } 868 * @syscap SystemCapability.ArkUI.ArkUI.Full 869 * @since 7 870 */ 871 /** 872 * Set the auto style of the picture 873 * 874 * @param { boolean } value 875 * @returns { ImageAttribute } 876 * @syscap SystemCapability.ArkUI.ArkUI.Full 877 * @form 878 * @since 9 879 */ 880 /** 881 * Set the auto style of the picture 882 * 883 * @param { boolean } value 884 * @returns { ImageAttribute } 885 * @syscap SystemCapability.ArkUI.ArkUI.Full 886 * @crossplatform 887 * @form 888 * @since 10 889 */ 890 /** 891 * Set the auto style of the picture 892 * 893 * @param { boolean } value 894 * @returns { ImageAttribute } 895 * @syscap SystemCapability.ArkUI.ArkUI.Full 896 * @crossplatform 897 * @form 898 * @atomicservice 899 * @since 11 900 */ 901 autoResize(value: boolean): ImageAttribute; 902 903 /** 904 * Sets the image rendering mode. 905 * 906 * @param { ImageRenderMode } value 907 * @returns { ImageAttribute } 908 * @syscap SystemCapability.ArkUI.ArkUI.Full 909 * @since 7 910 */ 911 /** 912 * Sets the image rendering mode. 913 * 914 * @param { ImageRenderMode } value 915 * @returns { ImageAttribute } 916 * @syscap SystemCapability.ArkUI.ArkUI.Full 917 * @form 918 * @since 9 919 */ 920 /** 921 * Sets the image rendering mode. 922 * 923 * @param { ImageRenderMode } value 924 * @returns { ImageAttribute } 925 * @syscap SystemCapability.ArkUI.ArkUI.Full 926 * @crossplatform 927 * @form 928 * @since 10 929 */ 930 /** 931 * Sets the image rendering mode. 932 * 933 * @param { ImageRenderMode } value 934 * @returns { ImageAttribute } 935 * @syscap SystemCapability.ArkUI.ArkUI.Full 936 * @crossplatform 937 * @form 938 * @atomicservice 939 * @since 11 940 */ 941 renderMode(value: ImageRenderMode): ImageAttribute; 942 943 /** 944 * Set dynamic range mode of image. 945 * 946 * @param { DynamicRangeMode } value - Indicates the resizable options. 947 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 948 * @syscap SystemCapability.ArkUI.ArkUI.Full 949 * @atomicservice 950 * @since 12 951 */ 952 dynamicRangeMode(value: DynamicRangeMode): ImageAttribute; 953 954 /** 955 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 956 * 957 * @param { ImageInterpolation } value 958 * @returns { ImageAttribute } 959 * @syscap SystemCapability.ArkUI.ArkUI.Full 960 * @since 7 961 */ 962 /** 963 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 964 * 965 * @param { ImageInterpolation } value 966 * @returns { ImageAttribute } 967 * @syscap SystemCapability.ArkUI.ArkUI.Full 968 * @form 969 * @since 9 970 */ 971 /** 972 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 973 * 974 * @param { ImageInterpolation } value 975 * @returns { ImageAttribute } 976 * @syscap SystemCapability.ArkUI.ArkUI.Full 977 * @crossplatform 978 * @form 979 * @since 10 980 */ 981 /** 982 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 983 * 984 * @param { ImageInterpolation } value 985 * @returns { ImageAttribute } 986 * @syscap SystemCapability.ArkUI.ArkUI.Full 987 * @crossplatform 988 * @form 989 * @atomicservice 990 * @since 11 991 */ 992 interpolation(value: ImageInterpolation): ImageAttribute; 993 994 /** 995 * Specifies the picture decoding size. 996 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 997 * 998 * @param { object } value 999 * @returns { ImageAttribute } 1000 * @syscap SystemCapability.ArkUI.ArkUI.Full 1001 * @since 7 1002 */ 1003 /** 1004 * Specifies the picture decoding size. 1005 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1006 * 1007 * @param { object } value 1008 * @returns { ImageAttribute } 1009 * @syscap SystemCapability.ArkUI.ArkUI.Full 1010 * @form 1011 * @since 9 1012 */ 1013 /** 1014 * Specifies the picture decoding size. 1015 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1016 * 1017 * @param { object } value 1018 * @returns { ImageAttribute } 1019 * @syscap SystemCapability.ArkUI.ArkUI.Full 1020 * @crossplatform 1021 * @form 1022 * @since 10 1023 */ 1024 /** 1025 * Specifies the picture decoding size. 1026 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1027 * 1028 * @param { object } value 1029 * @returns { ImageAttribute } 1030 * @syscap SystemCapability.ArkUI.ArkUI.Full 1031 * @crossplatform 1032 * @form 1033 * @atomicservice 1034 * @since 11 1035 */ 1036 sourceSize(value: { width: number; height: number }): ImageAttribute; 1037 1038 /** 1039 * Sets the synchronous or asynchronous mode for image loading. 1040 * The default parameter type is bool, and the default value is false. 1041 * 1042 * @param { boolean } value 1043 * @returns { ImageAttribute } 1044 * @syscap SystemCapability.ArkUI.ArkUI.Full 1045 * @since 8 1046 */ 1047 /** 1048 * Sets the synchronous or asynchronous mode for image loading. 1049 * The default parameter type is bool, and the default value is false. 1050 * 1051 * @param { boolean } value 1052 * @returns { ImageAttribute } 1053 * @syscap SystemCapability.ArkUI.ArkUI.Full 1054 * @form 1055 * @since 9 1056 */ 1057 /** 1058 * Sets the synchronous or asynchronous mode for image loading. 1059 * The default parameter type is bool, and the default value is false. 1060 * 1061 * @param { boolean } value 1062 * @returns { ImageAttribute } 1063 * @syscap SystemCapability.ArkUI.ArkUI.Full 1064 * @crossplatform 1065 * @form 1066 * @since 10 1067 */ 1068 /** 1069 * Sets the synchronous or asynchronous mode for image loading. 1070 * The default parameter type is bool, and the default value is false. 1071 * 1072 * @param { boolean } value 1073 * @returns { ImageAttribute } 1074 * @syscap SystemCapability.ArkUI.ArkUI.Full 1075 * @crossplatform 1076 * @form 1077 * @atomicservice 1078 * @since 11 1079 */ 1080 syncLoad(value: boolean): ImageAttribute; 1081 1082 /** 1083 * Sets the color filter effect on the image. 1084 * 1085 * @param { ColorFilter } value ColorFilter object. 1086 * @returns { ImageAttribute } 1087 * @syscap SystemCapability.ArkUI.ArkUI.Full 1088 * @form 1089 * @since 9 1090 */ 1091 /** 1092 * Sets the color filter effect on the image. 1093 * 1094 * @param { ColorFilter } value ColorFilter object. 1095 * @returns { ImageAttribute } 1096 * @syscap SystemCapability.ArkUI.ArkUI.Full 1097 * @crossplatform 1098 * @form 1099 * @since 10 1100 */ 1101 /** 1102 * Sets the color filter effect on the image. 1103 * 1104 * @param { ColorFilter } value ColorFilter object. 1105 * @returns { ImageAttribute } 1106 * @syscap SystemCapability.ArkUI.ArkUI.Full 1107 * @crossplatform 1108 * @form 1109 * @atomicservice 1110 * @since 11 1111 */ 1112 /** 1113 * Sets the color filter effect on the image. 1114 * 1115 * @param { ColorFilter | DrawingColorFilter } value ColorFilter object. 1116 * @returns { ImageAttribute } 1117 * @syscap SystemCapability.ArkUI.ArkUI.Full 1118 * @crossplatform 1119 * @form 1120 * @atomicservice 1121 * @since 12 1122 */ 1123 colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute; 1124 1125 /** 1126 * Allow replication. 1127 * 1128 * @param { CopyOptions } value 1129 * @returns { ImageAttribute } 1130 * @syscap SystemCapability.ArkUI.ArkUI.Full 1131 * @form 1132 * @since 9 1133 */ 1134 /** 1135 * Allow replication. 1136 * 1137 * @param { CopyOptions } value 1138 * @returns { ImageAttribute } 1139 * @syscap SystemCapability.ArkUI.ArkUI.Full 1140 * @crossplatform 1141 * @form 1142 * @since 10 1143 */ 1144 /** 1145 * Allow replication. 1146 * 1147 * @param { CopyOptions } value 1148 * @returns { ImageAttribute } 1149 * @syscap SystemCapability.ArkUI.ArkUI.Full 1150 * @crossplatform 1151 * @form 1152 * @atomicservice 1153 * @since 11 1154 */ 1155 copyOption(value: CopyOptions): ImageAttribute; 1156 1157 /** 1158 * Enable image dragging. 1159 * Default value is false. 1160 * 1161 * @param { boolean } value 1162 * @returns { ImageAttribute } 1163 * @syscap SystemCapability.ArkUI.ArkUI.Full 1164 * @since 9 1165 */ 1166 /** 1167 * Enable image dragging. 1168 * Default value is true. 1169 * 1170 * @param { boolean } value 1171 * @returns { ImageAttribute } 1172 * @syscap SystemCapability.ArkUI.ArkUI.Full 1173 * @atomicservice 1174 * @since 11 1175 */ 1176 draggable(value: boolean): ImageAttribute; 1177 1178 /** 1179 * Defines the PointLight 1180 * 1181 * @param { PointLightStyle } value - The point light style. 1182 * @returns { ImageAttribute } The attribute of the image. 1183 * @syscap SystemCapability.ArkUI.ArkUI.Full 1184 * @systemapi 1185 * @since 11 1186 */ 1187 pointLight(value: PointLightStyle): ImageAttribute; 1188 1189 /** 1190 * SVG anti-aliasing. 1191 * The range of the parameter values is (0.333, 1.333]. 1192 * Default value is 0.0. 1193 * 1194 * @param { number } value - The degree of anti-aliasing. 1195 * @returns { ImageAttribute } The attribute of the image. 1196 * @syscap SystemCapability.ArkUI.ArkUI.Full 1197 * @systemapi 1198 * @since 11 1199 */ 1200 edgeAntialiasing(value: number): ImageAttribute; 1201 1202 /** 1203 * This callback is triggered when an image is successfully loaded. 1204 * The size of the image source that is successfully loaded is returned, in pixels. 1205 * 1206 * @param { function } callback 1207 * @returns { ImageAttribute } 1208 * @syscap SystemCapability.ArkUI.ArkUI.Full 1209 * @since 7 1210 */ 1211 /** 1212 * This callback is triggered when an image is successfully loaded. 1213 * The size of the image source that is successfully loaded is returned, in pixels. 1214 * 1215 * @param { function } callback 1216 * @returns { ImageAttribute } 1217 * @syscap SystemCapability.ArkUI.ArkUI.Full 1218 * @form 1219 * @since 9 1220 */ 1221 /** 1222 * This callback is triggered when an image is successfully loaded. 1223 * The size of the image source that is successfully loaded is returned, in pixels. 1224 * 1225 * @param { function } callback 1226 * @returns { ImageAttribute } 1227 * @syscap SystemCapability.ArkUI.ArkUI.Full 1228 * @crossplatform 1229 * @form 1230 * @since 10 1231 */ 1232 /** 1233 * This callback is triggered when an image is successfully loaded. 1234 * The size of the image source that is successfully loaded is returned, in pixels. 1235 * 1236 * @param { function } callback 1237 * @returns { ImageAttribute } 1238 * @syscap SystemCapability.ArkUI.ArkUI.Full 1239 * @crossplatform 1240 * @form 1241 * @atomicservice 1242 * @since 11 1243 */ 1244 onComplete( 1245 callback: (event?: { 1246 /** 1247 * The width of the image source. 1248 * 1249 * @type { number } 1250 * @syscap SystemCapability.ArkUI.ArkUI.Full 1251 * @since 7 1252 */ 1253 /** 1254 * The width of the image source. 1255 * 1256 * @type { number } 1257 * @syscap SystemCapability.ArkUI.ArkUI.Full 1258 * @since 9 1259 * @form 1260 */ 1261 /** 1262 * The width of the image source. 1263 * 1264 * @type { number } 1265 * @syscap SystemCapability.ArkUI.ArkUI.Full 1266 * @crossplatform 1267 * @since 10 1268 * @form 1269 */ 1270 /** 1271 * The width of the image source. 1272 * 1273 * @type { number } 1274 * @syscap SystemCapability.ArkUI.ArkUI.Full 1275 * @crossplatform 1276 * @atomicservice 1277 * @since 11 1278 * @form 1279 */ 1280 width: number; 1281 /** 1282 * The height of the image source. 1283 * 1284 * @type { number } 1285 * @syscap SystemCapability.ArkUI.ArkUI.Full 1286 * @since 7 1287 */ 1288 /** 1289 * The height of the image source. 1290 * 1291 * @type { number } 1292 * @syscap SystemCapability.ArkUI.ArkUI.Full 1293 * @since 9 1294 * @form 1295 */ 1296 /** 1297 * The height of the image source. 1298 * 1299 * @type { number } 1300 * @syscap SystemCapability.ArkUI.ArkUI.Full 1301 * @crossplatform 1302 * @since 10 1303 * @form 1304 */ 1305 /** 1306 * The height of the image source. 1307 * 1308 * @type { number } 1309 * @syscap SystemCapability.ArkUI.ArkUI.Full 1310 * @crossplatform 1311 * @atomicservice 1312 * @since 11 1313 * @form 1314 */ 1315 height: number; 1316 /** 1317 * The width of the component source. 1318 * 1319 * @type { number } 1320 * @syscap SystemCapability.ArkUI.ArkUI.Full 1321 * @since 7 1322 */ 1323 /** 1324 * The width of the component source. 1325 * 1326 * @type { number } 1327 * @syscap SystemCapability.ArkUI.ArkUI.Full 1328 * @since 9 1329 * @form 1330 */ 1331 /** 1332 * The width of the component source. 1333 * 1334 * @type { number } 1335 * @syscap SystemCapability.ArkUI.ArkUI.Full 1336 * @crossplatform 1337 * @since 10 1338 * @form 1339 */ 1340 /** 1341 * The width of the component source. 1342 * 1343 * @type { number } 1344 * @syscap SystemCapability.ArkUI.ArkUI.Full 1345 * @crossplatform 1346 * @atomicservice 1347 * @since 11 1348 * @form 1349 */ 1350 componentWidth: number; 1351 /** 1352 * The height of the component source. 1353 * 1354 * @type { number } 1355 * @syscap SystemCapability.ArkUI.ArkUI.Full 1356 * @since 7 1357 */ 1358 /** 1359 * The height of the component source. 1360 * 1361 * @type { number } 1362 * @syscap SystemCapability.ArkUI.ArkUI.Full 1363 * @since 9 1364 * @form 1365 */ 1366 /** 1367 * The height of the component source. 1368 * 1369 * @type { number } 1370 * @syscap SystemCapability.ArkUI.ArkUI.Full 1371 * @crossplatform 1372 * @since 10 1373 * @form 1374 */ 1375 /** 1376 * The height of the component source. 1377 * 1378 * @type { number } 1379 * @syscap SystemCapability.ArkUI.ArkUI.Full 1380 * @crossplatform 1381 * @atomicservice 1382 * @since 11 1383 * @form 1384 */ 1385 componentHeight: number; 1386 /** 1387 * The value of the status of the image being loaded successfully. 1388 * If the returned status value is 0, the image data is successfully loaded. 1389 * If the returned status value is 1, the image is successfully decoded. 1390 * 1391 * @type { number } 1392 * @syscap SystemCapability.ArkUI.ArkUI.Full 1393 * @since 7 1394 */ 1395 /** 1396 * The value of the status of the image being loaded successfully. 1397 * If the returned status value is 0, the image data is successfully loaded. 1398 * If the returned status value is 1, the image is successfully decoded. 1399 * 1400 * @type { number } 1401 * @syscap SystemCapability.ArkUI.ArkUI.Full 1402 * @since 9 1403 * @form 1404 */ 1405 /** 1406 * The value of the status of the image being loaded successfully. 1407 * If the returned status value is 0, the image data is successfully loaded. 1408 * If the returned status value is 1, the image is successfully decoded. 1409 * 1410 * @type { number } 1411 * @syscap SystemCapability.ArkUI.ArkUI.Full 1412 * @crossplatform 1413 * @since 10 1414 * @form 1415 */ 1416 /** 1417 * The value of the status of the image being loaded successfully. 1418 * If the returned status value is 0, the image data is successfully loaded. 1419 * If the returned status value is 1, the image is successfully decoded. 1420 * 1421 * @type { number } 1422 * @syscap SystemCapability.ArkUI.ArkUI.Full 1423 * @crossplatform 1424 * @atomicservice 1425 * @since 11 1426 * @form 1427 */ 1428 loadingStatus: number; 1429 /** 1430 * The width of the picture that is actually drawn. 1431 * 1432 * @type { number } 1433 * @syscap SystemCapability.ArkUI.ArkUI.Full 1434 * @crossplatform 1435 * @since 10 1436 * @form 1437 */ 1438 /** 1439 * The width of the picture that is actually drawn. 1440 * 1441 * @type { number } 1442 * @syscap SystemCapability.ArkUI.ArkUI.Full 1443 * @crossplatform 1444 * @atomicservice 1445 * @since 11 1446 * @form 1447 */ 1448 contentWidth: number; 1449 /** 1450 * The height of the picture that is actually drawn. 1451 * 1452 * @type { number } 1453 * @syscap SystemCapability.ArkUI.ArkUI.Full 1454 * @crossplatform 1455 * @since 10 1456 * @form 1457 */ 1458 /** 1459 * The height of the picture that is actually drawn. 1460 * 1461 * @type { number } 1462 * @syscap SystemCapability.ArkUI.ArkUI.Full 1463 * @crossplatform 1464 * @atomicservice 1465 * @since 11 1466 * @form 1467 */ 1468 contentHeight: number; 1469 /** 1470 * The actual draw is offset from the x-axis of the component itself. 1471 * 1472 * @type { number } 1473 * @syscap SystemCapability.ArkUI.ArkUI.Full 1474 * @crossplatform 1475 * @since 10 1476 * @form 1477 */ 1478 /** 1479 * The actual draw is offset from the x-axis of the component itself. 1480 * 1481 * @type { number } 1482 * @syscap SystemCapability.ArkUI.ArkUI.Full 1483 * @crossplatform 1484 * @atomicservice 1485 * @since 11 1486 * @form 1487 */ 1488 contentOffsetX: number; 1489 /** 1490 * The actual draw is offset from the y-axis of the component itself. 1491 * 1492 * @type { number } 1493 * @syscap SystemCapability.ArkUI.ArkUI.Full 1494 * @crossplatform 1495 * @since 10 1496 * @form 1497 */ 1498 /** 1499 * The actual draw is offset from the y-axis of the component itself. 1500 * 1501 * @type { number } 1502 * @syscap SystemCapability.ArkUI.ArkUI.Full 1503 * @crossplatform 1504 * @atomicservice 1505 * @since 11 1506 * @form 1507 */ 1508 contentOffsetY: number; 1509 }) => void, 1510 ): ImageAttribute; 1511 1512 /** 1513 * This callback is triggered when an exception occurs during image loading. 1514 * The field of "message" carries the detailed information of failed image loading. 1515 * 1516 * @param { function } callback 1517 * @returns { ImageAttribute } 1518 * @syscap SystemCapability.ArkUI.ArkUI.Full 1519 * @form 1520 * @since 9 1521 */ 1522 /** 1523 * This callback is triggered when an exception occurs during image loading. 1524 * The field of "message" carries the detailed information of failed image loading. 1525 * 1526 * @param { function } callback 1527 * @returns { ImageAttribute } 1528 * @syscap SystemCapability.ArkUI.ArkUI.Full 1529 * @crossplatform 1530 * @form 1531 * @since 10 1532 */ 1533 /** 1534 * This callback is triggered when an exception occurs during image loading. 1535 * The field of "message" carries the detailed information of failed image loading. 1536 * 1537 * @param { ImageErrorCallback } callback 1538 * @returns { ImageAttribute } 1539 * @syscap SystemCapability.ArkUI.ArkUI.Full 1540 * @crossplatform 1541 * @form 1542 * @atomicservice 1543 * @since 11 1544 */ 1545 onError(callback: ImageErrorCallback): ImageAttribute; 1546 1547 /** 1548 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1549 * If the svg image is a wireless loop image, this callback is not triggered. 1550 * 1551 * @param { function } event 1552 * @returns { ImageAttribute } 1553 * @syscap SystemCapability.ArkUI.ArkUI.Full 1554 * @since 7 1555 */ 1556 /** 1557 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1558 * If the svg image is a wireless loop image, this callback is not triggered. 1559 * 1560 * @param { function } event 1561 * @returns { ImageAttribute } 1562 * @syscap SystemCapability.ArkUI.ArkUI.Full 1563 * @form 1564 * @since 9 1565 */ 1566 /** 1567 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1568 * If the svg image is a wireless loop image, this callback is not triggered. 1569 * 1570 * @param { function } event 1571 * @returns { ImageAttribute } 1572 * @syscap SystemCapability.ArkUI.ArkUI.Full 1573 * @crossplatform 1574 * @form 1575 * @since 10 1576 */ 1577 /** 1578 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1579 * If the svg image is a wireless loop image, this callback is not triggered. 1580 * 1581 * @param { function } event 1582 * @returns { ImageAttribute } 1583 * @syscap SystemCapability.ArkUI.ArkUI.Full 1584 * @crossplatform 1585 * @form 1586 * @atomicservice 1587 * @since 11 1588 */ 1589 onFinish(event: () => void): ImageAttribute; 1590 1591 /** 1592 * Enable image analyzer. 1593 * 1594 * @param { boolean} enable 1595 * @returns { ImageAttribute } 1596 * @syscap SystemCapability.ArkUI.ArkUI.Full 1597 * @since 11 1598 */ 1599 /** 1600 * Enable image analyzer. 1601 * 1602 * @param { boolean} enable 1603 * @returns { ImageAttribute } 1604 * @syscap SystemCapability.ArkUI.ArkUI.Full 1605 * @atomicservice 1606 * @since 12 1607 */ 1608 enableAnalyzer(enable: boolean): ImageAttribute; 1609 1610 /** 1611 * Set image analyzer with config. 1612 * 1613 * @param { ImageAnalyzerConfig } config 1614 * @returns { ImageAttribute } 1615 * @syscap SystemCapability.ArkUI.ArkUI.Full 1616 * @systemapi 1617 * @since 11 1618 */ 1619 analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute; 1620 1621 /** 1622 * Set image resizable options. 1623 * 1624 * @param { ResizableOptions } value - Indicates the resizable options. 1625 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1626 * @syscap SystemCapability.ArkUI.ArkUI.Full 1627 * @crossplatform 1628 * @since 11 1629 */ 1630 /** 1631 * Set image resizable options. 1632 * 1633 * @param { ResizableOptions } value - Indicates the resizable options. 1634 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1635 * @syscap SystemCapability.ArkUI.ArkUI.Full 1636 * @crossplatform 1637 * @atomicservice 1638 * @since 12 1639 */ 1640 resizable(value: ResizableOptions): ImageAttribute; 1641 1642 /** 1643 * Set the quality enhancement level of image. 1644 * 1645 * @param { ResolutionQuality } imageQuality 1646 * @returns { ImageAttribute } 1647 * @syscap SystemCapability.ArkUI.ArkUI.Full 1648 * @systemapi 1649 * @since 12 1650 */ 1651 enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute; 1652 1653 /** 1654 * Whether to support sensitive privacy information 1655 * 1656 * @param { boolean } supported - Whether to support sensitive privacy information. 1657 * @returns { ImageAttribute } 1658 * @syscap SystemCapability.ArkUI.ArkUI.Full 1659 * @form 1660 * @atomicservice 1661 * @since 12 1662 */ 1663 privacySensitive(supported: boolean): ImageAttribute; 1664 1665 /** 1666 * Set the rotation angle of image. 1667 * 1668 * @param { ImageRotateOrientation } orientation 1669 * @returns { ImageAttribute } 1670 * @syscap SystemCapability.ArkUI.ArkUI.Full 1671 * @crossplatform 1672 * @atomicservice 1673 * @since 14 1674 */ 1675 orientation(orientation: ImageRotateOrientation) : ImageAttribute; 1676} 1677 1678/** 1679 * Defines Image Component. 1680 * 1681 * @syscap SystemCapability.ArkUI.ArkUI.Full 1682 * @since 7 1683 */ 1684/** 1685 * Defines Image Component. 1686 * 1687 * @syscap SystemCapability.ArkUI.ArkUI.Full 1688 * @form 1689 * @since 9 1690 */ 1691/** 1692 * Defines Image Component. 1693 * 1694 * @syscap SystemCapability.ArkUI.ArkUI.Full 1695 * @crossplatform 1696 * @form 1697 * @since 10 1698 */ 1699/** 1700 * Defines Image Component. 1701 * 1702 * @syscap SystemCapability.ArkUI.ArkUI.Full 1703 * @crossplatform 1704 * @form 1705 * @atomicservice 1706 * @since 11 1707 */ 1708declare const Image: ImageInterface; 1709 1710/** 1711 * Defines Image Component instance. 1712 * 1713 * @syscap SystemCapability.ArkUI.ArkUI.Full 1714 * @since 7 1715 */ 1716/** 1717 * Defines Image Component instance. 1718 * 1719 * @syscap SystemCapability.ArkUI.ArkUI.Full 1720 * @form 1721 * @since 9 1722 */ 1723/** 1724 * Defines Image Component instance. 1725 * 1726 * @syscap SystemCapability.ArkUI.ArkUI.Full 1727 * @crossplatform 1728 * @form 1729 * @since 10 1730 */ 1731/** 1732 * Defines Image Component instance. 1733 * 1734 * @syscap SystemCapability.ArkUI.ArkUI.Full 1735 * @crossplatform 1736 * @form 1737 * @atomicservice 1738 * @since 11 1739 */ 1740declare const ImageInstance: ImageAttribute; 1741 1742/** 1743 * @type ImageErrorCallback 1744 * @syscap SystemCapability.ArkUI.ArkUI.Full 1745 * @form 1746 * @since 9 1747 */ 1748/** 1749 * @type ImageErrorCallback 1750 * @syscap SystemCapability.ArkUI.ArkUI.Full 1751 * @crossplatform 1752 * @form 1753 * @since 10 1754 */ 1755/** 1756 * @typedef { function } ImageErrorCallback 1757 * @param { ImageError } error 1758 * @syscap SystemCapability.ArkUI.ArkUI.Full 1759 * @crossplatform 1760 * @form 1761 * @atomicservice 1762 * @since 11 1763 */ 1764type ImageErrorCallback = (error: ImageError) => void; 1765 1766/** 1767 * @interface ImageError 1768 * @syscap SystemCapability.ArkUI.ArkUI.Full 1769 * @form 1770 * @since 9 1771 */ 1772/** 1773 * @interface ImageError 1774 * @syscap SystemCapability.ArkUI.ArkUI.Full 1775 * @crossplatform 1776 * @form 1777 * @since 10 1778 */ 1779/** 1780 * @interface ImageError 1781 * @syscap SystemCapability.ArkUI.ArkUI.Full 1782 * @crossplatform 1783 * @form 1784 * @atomicservice 1785 * @since 11 1786 */ 1787declare interface ImageError { 1788 /** 1789 * Component width. 1790 * 1791 * @type { number } 1792 * @syscap SystemCapability.ArkUI.ArkUI.Full 1793 * @form 1794 * @since 9 1795 */ 1796 /** 1797 * Component width. 1798 * 1799 * @type { number } 1800 * @syscap SystemCapability.ArkUI.ArkUI.Full 1801 * @crossplatform 1802 * @form 1803 * @since 10 1804 */ 1805 /** 1806 * Component width. 1807 * 1808 * @type { number } 1809 * @syscap SystemCapability.ArkUI.ArkUI.Full 1810 * @crossplatform 1811 * @form 1812 * @atomicservice 1813 * @since 11 1814 */ 1815 componentWidth: number; 1816 1817 /** 1818 * Component height. 1819 * 1820 * @type { number } 1821 * @syscap SystemCapability.ArkUI.ArkUI.Full 1822 * @form 1823 * @since 9 1824 */ 1825 /** 1826 * Component height. 1827 * 1828 * @type { number } 1829 * @syscap SystemCapability.ArkUI.ArkUI.Full 1830 * @crossplatform 1831 * @form 1832 * @since 10 1833 */ 1834 /** 1835 * Component height. 1836 * 1837 * @type { number } 1838 * @syscap SystemCapability.ArkUI.ArkUI.Full 1839 * @crossplatform 1840 * @form 1841 * @atomicservice 1842 * @since 11 1843 */ 1844 componentHeight: number; 1845 1846 /** 1847 * Message. 1848 * 1849 * @type { string } 1850 * @syscap SystemCapability.ArkUI.ArkUI.Full 1851 * @crossplatform 1852 * @form 1853 * @since 10 1854 */ 1855 /** 1856 * Message. 1857 * 1858 * @type { string } 1859 * @syscap SystemCapability.ArkUI.ArkUI.Full 1860 * @crossplatform 1861 * @form 1862 * @atomicservice 1863 * @since 11 1864 */ 1865 message: string 1866} 1867 1868/** 1869 * Image resizable options 1870 * 1871 * @interface ResizableOptions 1872 * @syscap SystemCapability.ArkUI.ArkUI.Full 1873 * @crossplatform 1874 * @since 11 1875 */ 1876/** 1877 * Image resizable options 1878 * 1879 * @interface ResizableOptions 1880 * @syscap SystemCapability.ArkUI.ArkUI.Full 1881 * @crossplatform 1882 * @atomicservice 1883 * @since 12 1884 */ 1885declare interface ResizableOptions { 1886 /** 1887 * Image slice widths. 1888 * 1889 * @type { ?EdgeWidths } 1890 * @syscap SystemCapability.ArkUI.ArkUI.Full 1891 * @crossplatform 1892 * @since 11 1893 */ 1894 /** 1895 * Image slice widths. 1896 * 1897 * @type { ?EdgeWidths } 1898 * @syscap SystemCapability.ArkUI.ArkUI.Full 1899 * @crossplatform 1900 * @atomicservice 1901 * @since 12 1902 */ 1903 slice?: EdgeWidths; 1904 1905 /** 1906 * Image lattice. 1907 * 1908 * @type { ?DrawingLattice } 1909 * @syscap SystemCapability.ArkUI.ArkUI.Full 1910 * @crossplatform 1911 * @atomicservice 1912 * @since 12 1913 */ 1914 lattice?: DrawingLattice; 1915} 1916