CN107193887B - A kind of method and device for the resource that Loads Image - Google Patents

A kind of method and device for the resource that Loads Image Download PDF

Info

Publication number
CN107193887B
CN107193887B CN201710296195.2A CN201710296195A CN107193887B CN 107193887 B CN107193887 B CN 107193887B CN 201710296195 A CN201710296195 A CN 201710296195A CN 107193887 B CN107193887 B CN 107193887B
Authority
CN
China
Prior art keywords
picture
loaded
spatial cache
interception
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710296195.2A
Other languages
Chinese (zh)
Other versions
CN107193887A (en
Inventor
张磊
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yami Technology Guangzhou Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710296195.2A priority Critical patent/CN107193887B/en
Publication of CN107193887A publication Critical patent/CN107193887A/en
Priority to PCT/CN2018/082165 priority patent/WO2018196582A1/en
Application granted granted Critical
Publication of CN107193887B publication Critical patent/CN107193887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The present invention provides a kind of method and devices of resource that Loads Image, which comprises obtains the size and screen size of picture to be loaded;System spare amount of ram and memory amount are obtained, spatial cache is determined according to the free memory amount and memory amount;The picture to be loaded is intercepted according to the capacity of the spatial cache, and the current information of the picture to be loaded after interception is loaded onto the spatial cache;The current sliding point of finger on the screen is obtained, when determining boundary of the current sliding point greater than the picture to be loaded after interception, the remaining information of the picture to be loaded is loaded onto the spatial cache using current sliding point as first nodal point;In this way, picture to be loaded is loaded onto spatial cache in such a way that fragment loads in this way, solve the problems, such as to cause memory to overflow because super large picture memory is excessive.

Description

A kind of method and device for the resource that Loads Image
Technical field
The invention belongs to image processing technology more particularly to a kind of method and devices for the resource that Loads Image.
Background technique
During Android exploitation, almost all of application all be unable to do without the load of picture.
In the prior art, picture is usually loaded directly into the information exhibition for then getting picture again from memory into memory Show on screen, this method is possible smaller picture.But it if goes according to the method described above load one big Picture, the picture size in memory can be more than the total size of heap memory, cause system that can not disposably distribute so more memories, And then lead to memory spilling occur.
Based on this, the present invention provides a kind of method and device of resource that Loads Image, in the prior art above-mentioned to solve Problem.
Summary of the invention
In view of the problems of the existing technology, the embodiment of the invention provides the methods and dress of a kind of resource that Loads Image It sets, for solving in the prior art when loading the picture of big memory, since the picture size in memory can be more than heap memory Space, the technical issues of causing memory to overflow.
The present invention provides a kind of method of resource that Loads Image, which comprises
Obtain the size of picture to be loaded;
System spare amount of ram and memory amount are obtained, caching is determined according to the free memory amount and the memory amount Space;
The picture to be loaded is intercepted according to the capacity of the spatial cache, and by the picture to be loaded after interception Current information is loaded onto the spatial cache;
Obtain finger current sliding point on the screen, after determining the current sliding point beyond interception described in When the boundary of picture to be loaded, the remaining information of the picture to be loaded is intercepted using the current sliding point as first nodal point, The remaining information of the picture to be loaded after interception is loaded onto the spatial cache.
It is described that spatial cache is determined according to the free memory amount and memory amount in above scheme, comprising:
The surplus ratio of the memory is determined according to the free memory amount and memory amount;
Obtain screen size, amount of ram needed for determining full frame interface according to the screen size;
The spatial cache C is determined according to formula C=B*A;Wherein, the A is the surplus ratio, and the B is full frame boundary Amount of ram needed for face.
It is described that the picture to be loaded is intercepted according to the capacity of the spatial cache in above scheme, comprising:
The center is set the second central point by the center for determining the picture to be loaded;
The first interception area and the ratio of width to height of the picture to be loaded are determined according to screen size;
Centered on second central point, interception algorithm is utilized based on first interception area and described the ratio of width to height DecodeRegion intercepts the picture to be loaded.
In above scheme, after the picture to be loaded after interception is loaded onto the spatial cache, further includes: load The first bitmap is returned after the completion, and the picture to be loaded is shown by first bitmap to as being arranged in display background to picture Current information.
In above scheme, after the remaining information that the picture to be loaded is loaded using current sliding point as first nodal point, also Include: that load returns to the second bitmap to picture after the completion, picture is arranged in display background in second bitmap, refreshes and shows The remaining information of the picture to be loaded.
The present invention also provides a kind of device of resource that Loads Image, described device includes:
Acquiring unit, size, system spare amount of ram and the memory amount and finger for obtaining picture to be loaded are in institute State the current sliding point on screen;
Determination unit, for determining spatial cache according to the free memory amount and the memory amount;
Loading unit, for intercepting the picture to be loaded according to the capacity of the spatial cache, and by the institute after interception The current information for stating picture to be loaded is loaded onto the spatial cache;
When determining boundary of the current sliding point beyond the picture to be loaded after interception, work as front slide with described Point is the remaining information that first nodal point intercepts the picture to be loaded, by the remaining information of the picture to be loaded after interception It is loaded onto the spatial cache.
In above scheme, the acquiring unit is also used to: obtaining screen size;The determination unit is specifically used for:
The surplus ratio of the memory is determined according to the free memory amount and the memory amount;
Amount of ram needed for determining full frame interface according to the screen size;
The spatial cache C is determined according to formula C=B*A;Wherein, the A is the surplus ratio, and the B is full frame boundary Amount of ram needed for face.
In above scheme, the loading unit is specifically used for:
The center is set the second central point by the center for determining the picture to be loaded;
The first interception area and the ratio of width to height of the picture to be loaded are determined according to screen size;
Centered on second central point, interception algorithm is utilized based on first interception area and described the ratio of width to height DecodeRegion intercepts the picture to be loaded.
In above scheme, described device further include: display unit, the display unit is for described to be added after intercepting After load picture is loaded onto the spatial cache, the first bitmap is returned to picture, by first bitmap to as setting is in display back Jing Zhong shows the current information of the picture to be loaded.
In above scheme, display unit is also used to: loading the picture to be loaded by first nodal point of current sliding point Remaining information after return to the second bitmap to picture, by second bitmap to as being arranged in display background, refresh and show institute State the remaining information of picture to be loaded.
The present invention provides a kind of method and devices of resource that Loads Image, which comprises obtains picture to be loaded Size;System spare amount of ram and memory amount are obtained, spatial cache is determined according to the free memory amount and memory amount; The picture to be loaded is intercepted according to the capacity of the spatial cache, and by the current information of the picture to be loaded after interception It is loaded onto the spatial cache;Finger current sliding point on the screen is obtained, when determining that the current sliding point is big When the boundary of the picture to be loaded after interception, the figure to be loaded is intercepted by first nodal point of the current sliding point The remaining information of picture to be loaded described after interception is loaded onto the spatial cache by the remaining information of piece;In this way, according to institute It states free memory amount and memory amount determines a spatial cache, first according to the capacity of spatial cache by pictorial information to be loaded A part loaded;When the boundary of the picture to be loaded after finger slides into interception, then again according to spatial cache Picture to be loaded is loaded onto spatial cache in such a way that fragment loads in this way by the remainder of incremental assignment pictorial information, It solves the problems, such as to cause memory to overflow because super large picture memory is excessive.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram for the resource that Loads Image that the embodiment of the present invention one provides;
Fig. 2 is the apparatus structure schematic diagram for the resource that Loads Image that the embodiment of the present invention one provides.
Specific embodiment
In order to when loading super large picture, avoid the occurrence of because of picture memory excessive the problem of causing memory to overflow, the present invention Provide a kind of method and device of resource that Loads Image, which comprises obtain the size and screen ruler of picture to be loaded It is very little;System spare amount of ram and memory amount are obtained, spatial cache is determined according to the free memory amount and memory amount;According to The capacity of the spatial cache intercepts the picture to be loaded, and the current information of the picture to be loaded after interception is loaded To in the spatial cache;The current sliding point of finger on the screen is obtained, is cut when determining that the current sliding point exceeds When the boundary of the picture to be loaded after taking, the picture to be loaded is intercepted by first nodal point of the current sliding point The remaining information of the picture to be loaded after interception is loaded onto the spatial cache by remaining information.
Technical solution of the present invention is described in further detail below by drawings and the specific embodiments.
Embodiment one
The present embodiment provides a kind of methods of resource that Loads Image, as shown in Figure 1, which comprises
S101 obtains the size of picture to be loaded.
In this step, the screen size of the original size for getting picture to be loaded and display picture to be loaded is needed first, The screen can be the screen for being equipped with any intelligent terminal of Android system, such as: smart phone, plate and wearable device Deng.The picture to be loaded is usually the picture of very large memory, and the memory of the picture to be loaded is at least over 20M.
Here, the composition of the picture file is usually all made of head description information and actual content information.That When obtaining the size of picture to be loaded, specifically can be such that
The type for determining the picture by reading the suffix name of picture to be loaded first is then based on the type and calls BitmapFactory.decodeStream method obtains the header information of picture, and header information storage is arrived In BitmapFactory.Options object.Finally called respectively from BitmapFactory.Options outWidth and OutHeight method, to have got the width and height of picture respectively.In order to facilitate the width for the picture that description will acquire here It is labeled as picWidth, high label.
It after getting the original size of picture, also needs to obtain the screen size for showing picture to be loaded, with energy following below scheme The size that the screen can show is determined when handling picture.
The context Context provided particular by calling system calls getSystemService method to get The window management class WindowManager of system.Current screen is being obtained by the getWidth () method in window management class Width gets the elevation information of current screen using getHeight () method.For convenience, by the width marker of screen For screenWidth, it is and screenHeight by the number of altitude.
S102 obtains system spare amount of ram and memory amount, true according to the free memory amount and the memory amount Determine spatial cache.
After getting the original size and screen size of picture to be loaded, also need to get system spare amount of ram and described Memory amount;It here, is that getSystemService method is called to get the boundary of system by system context Context Facial canal manages object ActivityManager.Then it is obtained by interface management object reference getMemoryInfo object therein Get the descriptor memory object memoryInfo in system.Then availMem method is called to obtain from memoryInfo object again Get the free memory amount of the system;The memory amount of system is got using totalMem method.For the convenience of description, Free memory amount is labeled as availMem, memory amount is labeled as totalMem.
After getting free memory amount and memory amount, determine that one is delayed further according to the free memory amount and memory amount Deposit space.
Specifically, the surplus ratio A that the memory is determined according to the free memory amount and memory amount, such as formula (1) institute Show:
A=availMem/totalMem (1)
In formula (1), the availMem is memory surplus, and the totalMem is memory amount.
Amount of ram needed for determining full frame interface according to the screen size, as shown in formula (2):
B=screenWidth*screenHeight (2)
In formula (2), the screenWidth is the width information of the screen, and the screenHeight is described The elevation information of screen.
The spatial cache C is determined according to formula (3);
C=B*A (3)
Wherein, in formula (3), the A is the surplus ratio, and the B is amount of ram needed for full frame interface.
Thus calculate the capacity of spatial cache, it should be noted that the capacity of spatial cache is surplus according to memory Surplus dynamic adjustment, memory surplus is bigger, and the capacity of spatial cache is bigger;Memory surplus is smaller, spatial cache Capacity is smaller.
S103 intercepts the picture to be loaded according to the capacity of the spatial cache, and will be described to be loaded after interception The current information of picture is loaded onto the spatial cache.
In this step, after the capacity for determining spatial cache, intercepted according to the capacity of the spatial cache described to be loaded Picture, and the current information of the picture to be loaded after interception is loaded onto the spatial cache.
Specifically, it is first determined the center is set the second center by the center of the picture to be loaded Point;Second central point is the point of intersection of picWidth/2 and picHeight/2.
Then the first interception area and the ratio of width to height of the picture to be loaded are determined according to the screen size;It is described wide high Than that should be consistent with the ratio of width to height of the screen.
Finally centered on second central point, calculated based on first interception area and described the ratio of width to height using interception Method decodeRegion intercepts the picture to be loaded.After being intercepted to the picture to be loaded, by working as after interception Preceding information is loaded onto the spatial cache, and the first bitmap is returned after the completion of load to picture, by first bitmap to picture BitMap is arranged in display background, can show the current information of the picture to be loaded.
In this way, can show a part of information of picture to be loaded on the screen.
S104 obtains the current sliding point of finger on the screen, after determining the current sliding point beyond interception The picture to be loaded boundary when, using the current sliding point as first nodal point by the picture to be loaded residue believe Breath is loaded onto the spatial cache.
In this step, when there is gesture to slide the remaining information to check picture to be loaded on the screen, it is by monitoring The slip event of system obtains the current sliding point of finger on the screen, when determining that the current sliding point cuts beyond described When the boundary of the picture to be loaded after taking, with current sliding point, (i.e. the boundary line of spatial cache and finger are by friendship on the screen Point) it is that the remaining information of the picture to be loaded is loaded onto the spatial cache by first nodal point, it thus can will be to The remaining information to Load Image is loaded onto spatial cache.
The second bitmap is returned after the completion of load, and picture is refreshed simultaneously by second bitmap to as being arranged in display background Show the remaining information of the picture to be loaded.Picture to be loaded is loaded in such a way that fragment loads in this way it is avoided that occurring The problem of memory overflows, and the method that shows of this local loading has also been avoided the occurrence of when being loaded due to the mode of lossy compression The problem of leading to picture.
Here, the remaining the picture to be loaded of spatial cache specifically by the invalidate method of calling system Remaining information refreshes to screen.
Embodiment two
Corresponding to embodiment one, the present embodiment provides a kind of devices of resource that Loads Image, as shown in Fig. 2, described device It include: acquiring unit 21, determination unit 22, loading unit 23 and display unit 24;Wherein,
The acquiring unit 21 need to get the original size of picture to be loaded and the screen size of display picture to be loaded, The screen can be the screen for being equipped with any intelligent terminal of Android system, such as: smart phone, plate and wearable device Deng.The picture to be loaded is usually the picture of very large memory, and the memory of the picture to be loaded is at least over 20M.
Here, the composition of the picture file is usually all made of head description information and actual content information.That When obtaining the size of picture to be loaded, specifically can be such that
The acquiring unit 21 determines the type of the picture by reading the suffix name of picture to be loaded first, is then based on The type calls BitmapFactory.decodeStream method to obtain the header information of picture, and header information is stored Into BitmapFactory.Options object.Finally call outWidth respectively from BitmapFactory.Options With outHeight method, to have got the width and height of picture respectively.The picture that will acquire here in order to facilitate description Width label is, high label is.
After getting the original size of picture, the acquiring unit 21 also needs to obtain the screen ruler for showing picture to be loaded It is very little, the size that the screen can show is determined when handling picture with energy following below scheme.
The acquiring unit 21 is called particular by the context Context that calling system provides GetSystemService method gets the window management class WindowManager of system.By in window management class GetWidth () method obtains the width of current screen, and the height letter of current screen is got using getHeight () method Breath.For convenience, it is screenWidth by the width marker of screen, is and screenHeight by the number of altitude.
After the acquiring unit 21 gets the original size and screen size of picture to be loaded, it is surplus also to need to get system Remaining amount of ram and memory amount;It here, is to call getSystemService method to obtain by system context Context Get the interface management object ActivityManager of system.Then therein by interface management object reference GetMemoryInfo object gets the descriptor memory object memoryInfo in system.Then again from memoryInfo pairs As middle calling availMem method gets the free memory amount of the system;It is got in system using totalMem method Deposit total amount.For the convenience of description, free memory amount is labeled as availMem, memory amount is labeled as totalMem.
After the acquiring unit 21 gets free memory amount and memory amount, the determination unit 22 is used for according to Free memory amount and memory amount determine a spatial cache.
Specifically, the surplus ratio A that the memory is determined according to the free memory amount and memory amount, such as formula (1) institute Show:
A=availMem/totalMem (1)
In formula (1), the availMem is memory surplus, and the totalMem is memory amount.
Amount of ram needed for determining full frame interface according to the screen size, as shown in formula (2):
B=screenWidth*screenHeight (2)
In formula (2), the screenWidth is the width information of the screen, and the screenHeight is described The elevation information of screen.
The spatial cache C is determined according to formula (3);
C=B*A (3)
Wherein, in formula (3), the A is the surplus ratio, and the B is amount of ram needed for full frame interface.
The determination unit 22 described so just calculates the capacity of spatial cache, it should be noted that the appearance of spatial cache Amount is adjusted according to memory surplus dynamic, and memory surplus is bigger, and the capacity of spatial cache is bigger;Memory surplus is got over Small, the capacity of spatial cache is smaller.
After the capacity for determining spatial cache, the loading unit 23 according to the interception of the capacity of the spatial cache it is described to It Loads Image, and the current information of the picture to be loaded after interception is loaded onto the spatial cache.
Specifically, the loading unit 23 described first determines the center of the picture to be loaded, by the center It is set as the second central point;Second central point is the point of intersection of picWidth/2 and picHeight/2.
Then the first interception area and the ratio of width to height of the picture to be loaded are determined according to the screen size;It is described wide high Than that should be consistent with the ratio of width to height of the screen.
Finally centered on second central point, calculated based on first interception area and described the ratio of width to height using interception Method decodeRegion intercepts the picture to be loaded.After being intercepted to the picture to be loaded, by working as after interception Preceding information is loaded onto the spatial cache, the first bitmap is returned to after the completion of load to picture, and the display unit 24 is by described the One bitmap is arranged in display background to as BitMap, can show the current information of the picture to be loaded.
In this way, the display unit 24 can show a part of information of picture to be loaded on the screen.
When there is gesture to slide the remaining information to check picture to be loaded on the screen, the loading unit 23 passes through The slip event of monitoring system obtains the current sliding point of finger on the screen, when determining that the current sliding point exceeds When the boundary of the picture to be loaded after interception, with current sliding point, (i.e. the boundary line of spatial cache and finger are pressed in screen On intersection point) be first nodal point the remaining information of the picture to be loaded is loaded onto the spatial cache, thus may be used The remaining information of picture to be loaded to be loaded onto spatial cache.
The second bitmap is returned to after the completion of the loading unit 23 load to picture, the display unit 24 is by second bitmap To as being arranged in display background, refresh and show the remaining information of the picture to be loaded.The side loaded in this way by fragment Formula loads picture to be loaded it is avoided that there is the problem of memory spilling, and the method that this local loading is shown also avoids out Show due to the problem of leading to picture when the mode of lossy compression loads.
Here, the display unit 24 is specifically by the invalidate method of calling system by spatial cache The remaining information of picture to be loaded refreshes to screen.
The method and device energy bring beneficial effect of the resource provided in an embodiment of the present invention that Loads Image is at least:
The present invention provides a kind of method and devices of resource that Loads Image, which comprises obtains picture to be loaded Size;System spare amount of ram and memory amount are obtained, spatial cache is determined according to the free memory amount and memory amount; The picture to be loaded is intercepted according to the capacity of the spatial cache, and by the current information of the picture to be loaded after interception It is loaded onto the spatial cache;Finger current sliding point on the screen is obtained, when determining that the current sliding point is super Out when the boundary of the picture to be loaded after the interception, the figure to be loaded is intercepted by first nodal point of current sliding point The remaining information of the picture to be loaded after interception is loaded onto the spatial cache by the remaining information of piece;In this way, according to The free memory amount and memory amount determine a spatial cache, are first believed picture to be loaded according to the capacity of spatial cache A part of breath is loaded;When the boundary of the picture to be loaded after finger slides into interception, then again according to caching Picture to be loaded is loaded onto caching in such a way that fragment loads in this way by the remainder of the incremental assignment pictorial information in space Space solves the problems, such as to cause memory to overflow because super large picture memory is excessive.And it is aobvious to carry out fragment after fragment load Show, this dynamic local display method avoid because lossy compression reload display caused by picture problem of dtmf distortion DTMF.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all Made any modifications, equivalent replacements, and improvements etc. within the spirit and principles in the present invention, should be included in protection of the invention Within the scope of.

Claims (8)

1. a kind of method for the resource that Loads Image, which is characterized in that the described method includes:
Obtain the size of picture to be loaded;
System spare amount of ram and memory amount are obtained, determines that caching is empty according to the free memory amount and the memory amount Between;
The picture to be loaded is intercepted according to the capacity of the spatial cache, and by the current of the picture to be loaded after interception Information is loaded onto the spatial cache;
The current sliding point of finger on the screen is obtained, the figure to be loaded after determining that the current sliding point exceeds interception When the boundary of piece, the remaining information of the picture to be loaded is intercepted using the current sliding point as first nodal point, after interception The remaining information of the picture to be loaded be loaded onto the spatial cache;
It is described that spatial cache is determined according to the free memory amount and memory amount, comprising:
The surplus ratio of the memory is determined according to the free memory amount and memory amount;
Obtain screen size, amount of ram needed for determining full frame interface according to the screen size;
The spatial cache C is determined according to formula C=B*A;Wherein, the A is the surplus ratio, and the B is full frame interface institute The amount of ram needed.
2. the method as described in claim 1, which is characterized in that described described to be added according to the interception of the capacity of the spatial cache Carry picture, comprising:
The center is set the second central point by the center for determining the picture to be loaded;
The first interception area and the ratio of width to height of the picture to be loaded are determined according to screen size;
Centered on second central point, interception algorithm is utilized based on first interception area and described the ratio of width to height DecodeRegion intercepts the picture to be loaded.
3. the method as described in claim 1, which is characterized in that the picture to be loaded after interception is loaded onto the caching After in space, further includes: return to the first bitmap after the completion of load to picture, by first bitmap to as being arranged in display background In, show the current information of the picture to be loaded.
4. the method as described in claim 1, which is characterized in that loaded using current sliding point as first nodal point described to be loaded After the remaining information of picture, further includes: return to the second bitmap after the completion of load to picture, by second bitmap to as setting is aobvious Show in background, refreshes and show the remaining information of the picture to be loaded.
5. a kind of device for the resource that Loads Image, which is characterized in that described device includes:
Acquiring unit, size, system spare amount of ram and memory amount and finger for obtaining picture to be loaded are on the screen Current sliding point;
Determination unit, for determining spatial cache according to the free memory amount and the memory amount;
Loading unit, for intercepting the picture to be loaded according to the capacity of the spatial cache, and by described in after interception to The current information to Load Image is loaded onto the spatial cache;
When determining boundary of the current sliding point beyond the picture to be loaded after interception, it is with the current sliding point First nodal point intercepts the remaining information of the picture to be loaded, and the remaining information of the picture to be loaded after interception is loaded To in the spatial cache;Wherein,
The acquiring unit is also used to: obtaining screen size;The determination unit is specifically used for:
The surplus ratio of the memory is determined according to the free memory amount and the memory amount;
Amount of ram needed for determining full frame interface according to the screen size;
The spatial cache C is determined according to formula C=B*A;Wherein, the A is the surplus ratio, and the B is full frame interface institute The amount of ram needed.
6. device as claimed in claim 5, which is characterized in that the loading unit is specifically used for:
The center is set the second central point by the center for determining the picture to be loaded;
The first interception area and the ratio of width to height of the picture to be loaded are determined according to screen size;
Centered on second central point, interception algorithm is utilized based on first interception area and described the ratio of width to height DecodeRegion intercepts the picture to be loaded.
7. device as claimed in claim 5, which is characterized in that described device further include: display unit, the display unit are used After the picture to be loaded after interception is loaded onto the spatial cache, the first bitmap is returned to picture, by described first Bitmap shows the current information of the picture to be loaded to as being arranged in display background.
8. device as claimed in claim 5, which is characterized in that display unit is also used to: with current sliding point for the first center The second bitmap is returned after the remaining information of the point load picture to be loaded to picture, and second bitmap is being shown to as setting In background, refresh and show the remaining information of the picture to be loaded.
CN201710296195.2A 2017-04-28 2017-04-28 A kind of method and device for the resource that Loads Image Active CN107193887B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710296195.2A CN107193887B (en) 2017-04-28 2017-04-28 A kind of method and device for the resource that Loads Image
PCT/CN2018/082165 WO2018196582A1 (en) 2017-04-28 2018-04-08 Method and apparatus for loading picture resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710296195.2A CN107193887B (en) 2017-04-28 2017-04-28 A kind of method and device for the resource that Loads Image

Publications (2)

Publication Number Publication Date
CN107193887A CN107193887A (en) 2017-09-22
CN107193887B true CN107193887B (en) 2019-01-29

Family

ID=59872393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710296195.2A Active CN107193887B (en) 2017-04-28 2017-04-28 A kind of method and device for the resource that Loads Image

Country Status (2)

Country Link
CN (1) CN107193887B (en)
WO (1) WO2018196582A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193887B (en) * 2017-04-28 2019-01-29 武汉斗鱼网络科技有限公司 A kind of method and device for the resource that Loads Image
CN109992406B (en) * 2017-12-29 2022-06-07 北京京东尚科信息技术有限公司 Picture request method, picture request response method and client

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043611A (en) * 2009-10-23 2011-05-04 Tcl集团股份有限公司 System for dynamically generating user interface and implementation method thereof
CN104731594A (en) * 2015-03-26 2015-06-24 浪潮集团有限公司 Method for displaying runtime customized page based on Bootstrap
CN106502613A (en) * 2016-10-25 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method and device for Loading Image
CN106598523A (en) * 2016-12-16 2017-04-26 北京猎豹移动科技有限公司 Picture loading method, device and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI234717B (en) * 2003-12-04 2005-06-21 Inst Information Industry Method and system for dynamically determining web resource to be loaded and saving space
US8949913B1 (en) * 2010-09-16 2015-02-03 Pixia Corp. Method of making a video stream from a plurality of viewports within large format imagery
US9071418B2 (en) * 2011-07-29 2015-06-30 Blackfire Research Corporation Synchronous media rendering of demuxed media components across multiple devices
CN103544207B (en) * 2013-08-19 2019-01-29 Tcl集团股份有限公司 A kind of method and system of picture loaded and displayed
CN103677942B (en) * 2013-12-30 2017-09-05 Tcl集团股份有限公司 A kind of method and apparatus of movable terminal to browse network pictures
CN107193887B (en) * 2017-04-28 2019-01-29 武汉斗鱼网络科技有限公司 A kind of method and device for the resource that Loads Image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043611A (en) * 2009-10-23 2011-05-04 Tcl集团股份有限公司 System for dynamically generating user interface and implementation method thereof
CN104731594A (en) * 2015-03-26 2015-06-24 浪潮集团有限公司 Method for displaying runtime customized page based on Bootstrap
CN106502613A (en) * 2016-10-25 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method and device for Loading Image
CN106598523A (en) * 2016-12-16 2017-04-26 北京猎豹移动科技有限公司 Picture loading method, device and electronic equipment

Also Published As

Publication number Publication date
WO2018196582A1 (en) 2018-11-01
CN107193887A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
US20200328984A1 (en) Method and apparatus for allocating resource
US8319800B2 (en) Systems and methods for displaying fixed-scale content on mobile devices
KR102454196B1 (en) Method for controlling display and electronic device supporting the same
US11232169B2 (en) Processing image data of a webpage
CN107193887B (en) A kind of method and device for the resource that Loads Image
CN105098895B (en) The device and method of charge control
CN111158619B (en) Picture processing method and device
CN106412917A (en) Network expansion method and device
CN103645871A (en) Method and system for dynamically displaying local area image
CN107977407A (en) tile map storage method, device, storage medium and computer equipment
CN109961331B (en) Page processing method and system, computer system and readable storage medium
CN109388317B (en) Picture loading method, terminal device and storage medium
CN109829077A (en) A kind of page display method, device and equipment
CN111966440A (en) Display control method and device of information flow interface, terminal and storage medium
CN105046640A (en) Picture memory managing method and apparatus
CN105183288B (en) Single-window multi-task display method and intelligent mobile terminal thereof
CN113381898B (en) Display module interference removing method and device, computer equipment and storage medium
CN112433647B (en) Method for acquiring channel mapping matrix data of capacitive touch screen
CN111221458A (en) Rapid display method for copying, pasting, dragging and cloning global sliding table of big data
CN113032696A (en) Display method and display device of page picture
CN110110256A (en) Data processing method, device, electronic equipment and storage medium
CN109829140A (en) Chart display method, device and the computer equipment of data visualization platform
CN109324689A (en) Test topic amplification method, system and equipment based on eyeball moving track
CN103607436B (en) A kind of information displaying method and device
CN115310012A (en) Display data processing method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240201

Address after: Room 801, 85 Kefeng Road, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Yami Technology (Guangzhou) Co.,Ltd.

Country or region after: China

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: China