METHOD AND APPARATUS FOR DISPLAYING INSTANT MESSAGING (IM) MESSAGE
First Claim
1. A method for displaying an Instant Messaging (IM) message, comprising:
- when a size of a picture to be processed is greater than a size of a container, setting a display size of the picture to be processed to be not greater than the size of the container;
drawing the picture to be processed according to the set display size;
setting an identification mark for visible content of the Nth line of a message in the container, wherein N is a positive integer, and the identification mark comprises a set of sequence numbers of one or more characters in the message, the one or more characters being selected from the visible content of the Nth line of the message, wherein the set of sequence number of the one or more characters in the message is not visually displayed with the message;
after the container size is changed to obtain a second changed container, searching for a line number of the identification mark in the second changed container;
determining whether the line number of the identification mark in the second changed container is the Nth line in the second changed container; and
when the line number of the identification mark in the second changed container is not the Nth line in the second changed container, moving a display area of the second changed container without scrolling, and assigning a line where the identification mark locates as the Nth line of the display area of the second changed container.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for displaying an Instant Messaging (IM) message are provided. The method includes, when the size of a picture to be processed is greater than the size of a container, setting the display size of the picture to be processed to be not greater than the size of the container; and drawing the picture to be processed according to the set display size. As such, a picture to be processed having the size greater than the container size can be adapted to the size of a container in IM software, and the IM software can directly display the entirety of the picture that is originally greater than the container size.
-
Citations
20 Claims
-
1. A method for displaying an Instant Messaging (IM) message, comprising:
-
when a size of a picture to be processed is greater than a size of a container, setting a display size of the picture to be processed to be not greater than the size of the container; drawing the picture to be processed according to the set display size; setting an identification mark for visible content of the Nth line of a message in the container, wherein N is a positive integer, and the identification mark comprises a set of sequence numbers of one or more characters in the message, the one or more characters being selected from the visible content of the Nth line of the message, wherein the set of sequence number of the one or more characters in the message is not visually displayed with the message; after the container size is changed to obtain a second changed container, searching for a line number of the identification mark in the second changed container; determining whether the line number of the identification mark in the second changed container is the Nth line in the second changed container; and when the line number of the identification mark in the second changed container is not the Nth line in the second changed container, moving a display area of the second changed container without scrolling, and assigning a line where the identification mark locates as the Nth line of the display area of the second changed container. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An apparatus for displaying an Instant Messaging (IM) message, comprising:
-
a processing unit comprising one or more processors; a setting unit, adapted to set a display size of the picture to be processed to be not greater than a size of a container when the size of a picture to be processed is greater than the size of the container; and a first drawing unit, adapted to draw the picture to be processed according to the set display size; an identification unit, adapted to set an identification mark for visible content of the Nth line of a message in the container, wherein N is a positive integer, and the identification mark comprises a set of sequence numbers of one or more characters in the message, the one or more characters being selected from the visible content of the Nth line of the message, wherein the set of sequence number of the one or more characters in the message is not visually displayed with the message; a searching unit, used to search for a line number of the identification mark in the second changed container after the container size is changed to obtain a second changed container; a first determining unit, adapted to determine whether the line of the identification mark in the second changed container is in the Nth line second changed container; and a moving unit, used to move a display area of the second changed container without scrolling when the line number of the identification mark in the second changed container is not the Nth line in the second changed container, and assign a line where the identification mark locates as the Nth line of the display area in the second changed container. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A non-transitory computer-readable medium storing instructions which, when executed by one or more processors, cause an apparatus to perform a method for displaying an IM message, the method comprising:
-
when a size of a picture to be processed is greater than a size of a container, setting a display size of the picture to be processed to be not greater than the size of the container; drawing the picture to be processed according to the set display size; setting an identification mark for visible content of the Nth line of a message in the container, wherein N is a positive integer, and the identification mark comprises a set of sequence numbers of one or more characters in the message, the one or more characters being selected from the visible content of the Nth line of the message, wherein the set of sequence number of the one or more characters in the message is not visually displayed with the message; after the container size is changed to obtain a second changed container, searching for a line number of the identification mark in the second changed container; determining whether the line number of the identification mark in the second changed container is the Nth line in the second changed container; and when the line number of the identification mark in the second changed container is not the Nth line in the second changed container, moving a display area of the second changed container without scrolling, and assigning a line where the identification mark locates as the Nth line of the display area of the second changed container - View Dependent Claims (18, 19, 20)
-
Specification