Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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, smartphones with screens of 5.0 inches or smaller are currently on the market, when original pictures are displayed on the terminal screen, especially in the view display area of ​​the terminal screen , it may happen that the width and height dimensions of the image to be loaded exceed the width and height dimensions of the view display area used to display the image, that is, the view display area cannot display the entire content of the original image. If no special treatment is taken at this time Performing the rendering and drawing of the original image directly on the view can also easily lead to memory leaks in smartphones.

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

Embodiment Construction

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in combination with the embodiments of the present invention and the accompanying drawings. Apparently, the described embodiments are only part of the embodiments of the present invention, not all of them. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0029] figure 1 It is a flow char...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products