Picture loading method and device

A picture loading and picture technology, applied in the field of picture processing, can solve problems such as memory leaks, limited screen size, memory bottlenecks, etc., to reduce occupation and consumption, and improve the effect of excessive memory usage

Inactive Publication Date: 2018-01-19
ALIBABA (CHINA) CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the developer allocates the memory incorrectly and does not manually clear it afterwards, it will often lead to memory leaks
[0003] In the Android system, the loading of pictures is more likely to encounter memory bottlenecks
Although various cache mechanisms such as image compression or LruCache are used to avoid image data occupying too much memory, sometimes the user opens a large image to be displayed, for example, the image size is more than 4M. If such an image is loaded directly, the Some cases can lead to memory leaks in smartphones
In addition, due to the limited screen size of smart mobile terminals, for example, sma

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Picture loading method and device
  • Picture loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0028] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention and the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention generally described and illustrated in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.

[0029] f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a picture loading method and device. The method comprises the following steps that: when the sizes of the width and the height of a picture which needs to be loaded exceed the sizes of the width and the height of a view displaying area used for displaying the picture, capturing a new picture of which the sizes of the width and the height are equal to the sizes of the width and the height of the view displaying area from the picture which needs to be loaded, drawing the new picture in a view, monitoring a touch event of the view which displays the new picture, obtaining the position change of the movement of the new picture in real time when a user displays the new picture in a sliding way on the view, converting position change information into the Rect coordinate ofthe picture which needs to be loaded, and therefore, calculating a picture are which needs to be captured in the size range of the height and the width of the picture which needs to be loaded; and according to the calculated data, capturing a corresponding picture area in real time on the picture which needs to e loaded, and drawing the captured picture in real time in the view.

Description

technical field [0001] The present invention relates to the technical field of picture processing, in particular to a picture loading method and device. Background technique [0002] The memory management of the Android (Android) platform has always been a difficult problem. Although the development language Java has an automatic GC (Garbage Collection (garbage collection)) mechanism, which can release the space occupied by garbage, there are still a large number of program codes developed in c and c++ languages ​​​​under the Android platform. Memory is allocated by the developer and needs to be maintained and released. If the developer allocates memory incorrectly and does not manually clear it afterwards, memory leaks often result. [0003] The loading of pictures in the Android system is more likely to encounter memory bottlenecks. Although various cache mechanisms such as image compression or LruCache are used to avoid image data occupying too much memory, sometimes t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44G06F3/0485G06F3/0488
Inventor 涂勇
Owner ALIBABA (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products