Options
All
  • Public
  • Public/Protected
  • All
Menu
brief

Image elements

param image_elem_orig_path

image_elem_orig_path: Path of the sent image

param image_elem_level

image_elem_level: read and write (required), the quality level of the sent image, refer toTIMImageLevel

param image_elem_format

image_elem_format: Read/Write. Format of the sent message. 0xff: unknown; 1: JPG; 2: GIF; 3: PNG; 4: BMP

param image_elem_orig_id

image_elem_orig_id: Read-only. UUID of the original image.

param image_elem_orig_pic_height

image_elem_orig_pic_height: Read-only. Height of the original image.

param image_elem_orig_pic_width

image_elem_orig_pic_width: Read-only. Width of the original image.

param image_elem_orig_pic_size

image_elem_orig_pic_size: Read-only. Size of the original image.

param image_elem_thumb_id

image_elem_thumb_id: Read-only. UUID of the thumbnail.

param image_elem_thumb_pic_height

image_elem_thumb_pic_height: Read-only. Height of the thumbnail.

param image_elem_thumb_pic_width

image_elem_thumb_pic_width: Read-only. Width of the thumbnail.

param image_elem_thumb_pic_size

image_elem_thumb_pic_size: Read-only. Size of the thumbnail.

param image_elem_large_id

image_elem_large_id: Read-only. UUID of the large image.

param image_elem_large_pic_height

image_elem_large_pic_height: Read-only. Height of the large image.

param image_elem_large_pic_width

image_elem_large_pic_width: Read-only. Width of the large image.

param image_elem_large_pic_size

image_elem_large_pic_size: Read-only. Size of the large image.

param image_elem_orig_url

image_elem_orig_url: Read-only. URL of the original image.

param image_elem_thumb_url

image_elem_thumb_url: Read-only. URL of the thumbnail.

param image_elem_large_url

image_elem_large_url: Read-only. URL of the large image.

param image_elem_task_id

image_elem_task_id: Read-only. Task ID. Disused.

Each image has three specifications: Original (original image): An original image refers to an original image sent. The dimensions and size of the original image remain unchanged. Large (large image): A large image is obtained after the original image is proportionally compressed. After the compression, the smaller one of the height and width is equal to 720 pixels. Thumb (thumbnail): A thumbnail is obtained after the original image is proportionally compressed. After the compression, the smaller one of the height and width is equal to 198 pixels. If the size of the original image is smaller than 198 pixels, the original size is retained for the three specifications and compression is not required. If the size of the original image is between 198 pixels and 720 pixels, no compression is required for the large image and original image. When an image is displayed on a phone, we recommend that you display the thumbnail first. Then, the user can tap the thumbnail to download the large image and tap the large image to download the original image. Developers may also choose to skip the large image, so the user directly downloads the original image by tapping the thumbnail. When images are displayed on a tablet or PC, because the resolution is high and the devices are usually connected to Wi-Fi or a wired network, we recommend that you directly display large images. Then, the user can tap the large image to download the original image.

Hierarchy

  • ImageElem

Index

Properties

image_elem_format

image_elem_format: number

image_elem_large_id

image_elem_large_id: string

image_elem_large_pic_height

image_elem_large_pic_height: number

image_elem_large_pic_size

image_elem_large_pic_size: number

image_elem_large_pic_width

image_elem_large_pic_width: number

image_elem_large_url

image_elem_large_url: string

image_elem_level

image_elem_level: number

image_elem_orig_id

image_elem_orig_id: string

image_elem_orig_path

image_elem_orig_path: string

image_elem_orig_pic_height

image_elem_orig_pic_height: number

image_elem_orig_pic_size

image_elem_orig_pic_size: number

image_elem_orig_pic_width

image_elem_orig_pic_width: number

image_elem_orig_url

image_elem_orig_url: string

image_elem_task_id

image_elem_task_id: number

image_elem_thumb_id

image_elem_thumb_id: string

image_elem_thumb_pic_height

image_elem_thumb_pic_height: number

image_elem_thumb_pic_size

image_elem_thumb_pic_size: number

image_elem_thumb_pic_width

image_elem_thumb_pic_width: number

image_elem_thumb_url

image_elem_thumb_url: string

Generated using TypeDoc