WO2017050161A1 - Picture sharing method and device - Google Patents

Picture sharing method and device Download PDF

Info

Publication number
WO2017050161A1
WO2017050161A1 PCT/CN2016/098956 CN2016098956W WO2017050161A1 WO 2017050161 A1 WO2017050161 A1 WO 2017050161A1 CN 2016098956 W CN2016098956 W CN 2016098956W WO 2017050161 A1 WO2017050161 A1 WO 2017050161A1
Authority
WO
WIPO (PCT)
Prior art keywords
bitmap
view
data corresponding
content
data
Prior art date
Application number
PCT/CN2016/098956
Other languages
French (fr)
Chinese (zh)
Inventor
曾中华
Original Assignee
阿里巴巴集团控股有限公司
曾中华
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 阿里巴巴集团控股有限公司, 曾中华 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017050161A1 publication Critical patent/WO2017050161A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to a picture sharing method and apparatus.
  • the prior art provides a method for information sharing in the form of pictures. Based on the method, the user can share the pictures saved on the mobile device (such as a mobile phone or a tablet) to the social platform, so that other users can view the shared pictures through the third party device.
  • the mobile device such as a mobile phone or a tablet
  • the above prior art has a problem in that only files in a picture format (such as JPG, BMP, PNG, GIF, etc.) are shared in the form of pictures, and files in a non-picture format cannot be in the form of pictures. Share it.
  • a picture format such as JPG, BMP, PNG, GIF, etc.
  • An embodiment of the present application provides a method for sharing a picture, which is used to share a non-picture format file that can be displayed in a view in the form of a picture.
  • the embodiment of the present application further provides a picture sharing device, which is used to share a non-picture format file that can be displayed in a view in the form of a picture.
  • a method of image sharing including:
  • the bitmap is saved in memory, and a uniform resource identifier of the bitmap is generated and provided to other terminals.
  • a picture sharing device comprising:
  • bitmap generating unit configured to acquire data corresponding to content of the view in the terminal, and according to the Data generation bitmap
  • bitmap sharing unit configured to save the bitmap in a memory, and generate a uniform resource identifier of the bitmap to provide to other terminals.
  • the bitmap may be generated according to the data corresponding to the content of the obtained view, and the view may be generated according to the data of the non-image format file displayed in a view manner, thereby realizing the form of the image. , share files that can be displayed in a view, not in image format.
  • FIG. 1 is a schematic flowchart of a picture sharing method according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a flight information view according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a movie ticket information view according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a train ticket order view provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a stitching view of a train ticket order and a movie ticket order according to an embodiment of the present application
  • FIG. 6 is a schematic flowchart of a picture sharing method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a screen display content of a mobile phone according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a first bitmap according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a second bitmap provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a bitmap to be shared according to an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a picture sharing apparatus according to an embodiment of the present disclosure.
  • the embodiment 1 provides a picture sharing method for sharing a file in a non-picture format that can be displayed in a view in the form of a picture.
  • the schematic diagram of the specific implementation process of the method is shown in FIG. 1 and mainly includes the following steps:
  • Step 11 Acquire data corresponding to the content of the view in the terminal, and generate a bitmap according to the data (the bitmap may be referred to as a bitmap to be shared);
  • the view is simply a visual interface on the terminal, and mainly includes a display layer, a data layer, and a control layer.
  • the view can provide the user with visual, interactive screen elements, such as at least one of screen elements such as buttons, text, tables, and images.
  • the view may be any interface displayed on the screen of the mobile phone, such as an interface for displaying a picture on the screen of the mobile phone, or an interface for displaying the content of the short message on the screen of the mobile phone, or may be the whole Phone screen display interface, and more.
  • the text, pictures, tables and videos in the view that the user sees, etc. can be called the content of the view.
  • the different content displayed by the view is generated from the data in the view.
  • the data used to generate the content in the view may be referred to as the data corresponding to the content of the view.
  • a news view including: photos, text, and related links
  • the data constituting the view is saved, including: photos.
  • Data, related texts, and data in the view data representing different view contents have different data identifiers.
  • the number that represents the text content of the view The identifier of the data is "WB", indicating that the data of the view photo content is "ZP”, and the data identifier of the link related content of the view is "LJ”.
  • the obtaining the data corresponding to the content of the view in the terminal may include: querying the data constituting the view in the storage device of the terminal, and obtaining the query according to the data identifier of the data corresponding to the view content to be acquired.
  • the data corresponding to the data identifier in the data of the view may include: querying the data constituting the view in the storage device of the terminal, and obtaining the query according to the data identifier of the data corresponding to the view content to be acquired.
  • the mobile phone storage device can be queried to form the view.
  • the data corresponding to the text content and the related link content are respectively queried in the data constituting the view.
  • generating a bitmap according to the data corresponding to the content of the obtained view may specifically include: calling the createBitmap method in the Bitmap, and using the data corresponding to the content of the obtained view as the createBitmap method.
  • Input to generate a bitmap to be adjusted may determine the width and height of the view, and further, according to the obtained width of the view (Weight) and the height of the view (Height), call the canvas tool Canvas, treat The adjusted bitmap is adjusted to generate a bitmap.
  • acquiring data corresponding to the content of the view in the terminal may include: acquiring the first rule according to the predetermined data, and acquiring data corresponding to the first content of the view in the terminal.
  • the predetermined data acquisition first rule may include, but is not limited to, the following four rules:
  • Rule 1 Obtain the data corresponding to the content with the largest area in the view
  • rule 1 For example, suppose a view of a news is taken as an example, in which the text content occupies a large area, and the image content occupies a small area, according to rule 1, the data corresponding to the text content of the view is obtained, and The data corresponding to the text content acquired according to the data acquisition first rule is used as the data corresponding to the first content of the view.
  • Rule 2 Get the data corresponding to the view content of the specified type in the view
  • the first rule of the predetermined data acquisition is: acquisition
  • the data corresponding to the view content of the text type in the view is obtained according to the rule, and the data corresponding to the text content of the view is obtained, and the data corresponding to the text content obtained by the first rule according to the data is obtained as the view.
  • the data corresponding to the first content is obtained.
  • Rule 3 Obtain the data corresponding to the view content of the specified location in the view
  • the upper part of the view is the text content
  • the lower part is the picture content
  • the rule 3 is the data corresponding to the view content of the upper part of the view, according to In the rule 3, the data corresponding to the text content of the view is obtained, and the data corresponding to the text content acquired according to the data acquisition first rule is used as the data corresponding to the first content of the view.
  • Rule 4 determining a data acquisition requirement according to the type information of the view, and acquiring data matching the obtaining requirement in the view according to the data obtaining requirement;
  • the data acquisition requirement is a movie name, an opening time, and a seat number for acquiring the movie ticket. That is, according to rule 4, the data corresponding to the movie name displayed on the electronic movie ticket, the data corresponding to the opening time displayed on the electronic movie ticket, and the data corresponding to the seat number displayed on the electronic movie ticket are respectively acquired; And the data corresponding to the movie name, the opening time, and the seat number acquired according to the data acquisition first rule is used as the data corresponding to the first content of the electronic movie ticket.
  • the bitmap to be shared may be directly generated according to the data.
  • the createBitmap method in the Bitmap can be called, and the data corresponding to the content of the obtained view is used as an input of the createBitmap method to generate a bitmap to be shared.
  • the generated bitmap may be further adjusted.
  • the canvas tool Canvas may be invoked according to the obtained view width and the height of the view, and the generated bitmap is adjusted and The adjusted bitmap is used as a bitmap to be shared.
  • the first rule of data acquisition it is possible to obtain data corresponding to all contents of the view.
  • the first content of the view is all the content; or, according to the rule, it is also possible to obtain the part of the view.
  • the data corresponding to the content, at this time, the first content of the view is the partial content.
  • the acquiring the data corresponding to the content of the view in the terminal may further include: acquiring the second rule according to the predetermined data, and acquiring the second content corresponding to the view. And generating a bitmap according to the data corresponding to the first content and the data corresponding to the second content.
  • the second rule is obtained by the data, and may be, but is not limited to, the four rules described above, and details are not described herein again.
  • the first content and the second content may also be distinguished according to attributes of the view content.
  • the attributes of the content referred to herein include, but are not limited to, at least one of the following:
  • the first color such as some bright colors
  • a second color such as some kind of comparison a dark color
  • the second content for example, the area occupied in the view is not less than 50% of the entire view, can be used as the first content, and the area occupied in the view is less than 50% of the entire view, which can be used as the second content;
  • the first content and the second content may be distinguished according to whether the content is completely presented, for example, presented in an abbreviated manner, and may be presented as a second content, and presented in a complete manner, as the first content;
  • the image presented at a higher image resolution can be presented as the first content, lower at a lower image resolution, and can be used as the second content;
  • the function of the first content may be information that presents some user attention; and the function of the second content is used to indicate to the user that the operation that can be performed for the first content or related to the first content information.
  • the first content of a view may be a movie name, a main actor name, a director name, a release time, etc.
  • the second content may be an online purchase operation entry of the movie ticket, a producer information, and a related promotion of the movie. Information, etc.
  • data identification - for example, the data corresponding to the view may be assigned different content identifiers, for example, the first content identifier or the second content identifier is assigned, thereby corresponding to the data of the first content identifier.
  • the content may be the first content, and the content corresponding to the data having the second content identifier may be used as the second content.
  • step 12 the bitmap is saved in the memory, and a Uniform Resource Identifier (URI) of the bitmap is generated and provided to other terminals.
  • URI Uniform Resource Identifier
  • bitmap obtained by performing step 11 can be saved into the memory in a specified format.
  • the specified format may include, but is not limited to, the following formats: JPG, BMP, PNG, GIF, and the like.
  • the bitmap to be shared obtained by performing step 11 is saved as a memory file in a specified format (such as JPG format), and the URI of the bitmap is generated and provided to other terminals.
  • a specified format such as JPG format
  • a bitmap may be generated according to data corresponding to the content of the obtained view, and the view may be data according to a file in a non-image format displayed in a view manner.
  • the generated image can be used to share a non-image format file that can be displayed in a view.
  • Step 11 and step 12 are further explained below:
  • the type of the first content of the view can be used as the type of the view.
  • the type of the view may be a train ticket; for example, if the first content of the view is text information of the novel, the type of the view may be a novel.
  • the type of the first content of the view may be determined according to data corresponding to the first content and used to represent the first content type.
  • the method provided by the embodiment of the present application includes: acquiring type information of the view; and determining, according to the type information, the second type, in order to meet different requirements for the second content of the different types of views.
  • the acquisition requirement of the data corresponding to the content; and the number matching the acquisition requirement is obtained from the data corresponding to the second content according to the obtaining requirement according to.
  • the contents of the view are the first content of the view; and the contents of the view: “aircraft model”, “airline” and “airplane picture” are the second content of the view.
  • the first content of the view is ticket information, and the type information of the view may be determined as “travel ticket”.
  • the user's acquisition requirement for the second content of the view is: “airplane model” and “airline”, respectively, according to the acquisition requirement, respectively acquiring data corresponding to “aircraft model” in the second content. And the data corresponding to the "airline”.
  • the “movie poster” is the first content of the view; and the “director”, “main cast”, “release” Time” and “investor” are the second content of the view.
  • the type information of the first content of the view is “movie poster”, and it may be determined that the user’s acquisition requirement for the second content of the view is “director”, “main cast”, and “release time”, according to the acquisition.
  • the data is obtained by the data corresponding to the "director” in the second content, the data corresponding to the "main cast”, and the data corresponding to the "release time”.
  • the first content of the view that the user desires to share may include the title of the view and the body of the view.
  • acquiring data corresponding to the view content of the terminal includes: acquiring the view. The data corresponding to the title; the data corresponding to the body of the view is obtained.
  • the first content of the view includes: “flight number: XXXX”, “Beijing-Hangzhou”, “June 26, 2015”, “08:55am-10:15am”, and “airfare ticket” ".
  • the "air ticket” is the title of the first content of the view
  • the content other than the "air ticket” in the first content of the view is the main body of the view
  • the data corresponding to the content of the view is obtained.
  • the data corresponding to the view title "airplane ticket” and the data corresponding to the view body can be separately obtained.
  • the method provided by the embodiment of the present application includes: generating a text title of the view according to the obtained data corresponding to the title of the view; according to the obtained view Generating a first bitmap according to the data corresponding to the body; generating a second bitmap according to the acquired data matching the acquisition requirement; by using the first bitmap, the second bitmap, and the text title Splicing is performed to generate a bitmap to be shared.
  • the first bitmap, the second bitmap, and the text header are spliced to generate a bitmap to be shared, for example, by loading a picture layout tool cardlayout, and The first bitmap, the second bitmap, and the text title are set in the picture layout to achieve the purpose of splicing the first bitmap, the second bitmap, and the text title into the same image layout; determining user settings
  • the bitmap width (Weight) and the bitmap height (Height) and call the createBitmap method in the Bitmap and the canvas tool Canvas, according to the bitmap width (Weight), bitmap height (Height) and set the completed image layout, generate Bitmap to share.
  • a second bitmap is generated, and the text title, the first bitmap, and the second bitmap are spliced by loading a card layout tool to generate A bitmap shown in Figure 4, which can be used as a bitmap to be shared.
  • the first bitmap and the second bitmap described in the foregoing may be spliced to generate a bitmap to be shared; or, by using the first bitmap and the generated bitmap
  • the text title is spliced to generate a bitmap to be shared; or, the bitmap to be shared may be generated based only on the data corresponding to the body of the obtained view;
  • whether the bitmap to be shared needs to be stitched together, or the bitmap as the stitching object is specifically generated according to which data is obtained The embodiment of the present application does not limit the splicing object.
  • a bitmap may be directly generated according to the data corresponding to the acquired first content and the data corresponding to the second content, without performing bitmap splicing.
  • the createBitmap method in the Bitmap may be invoked, and the data corresponding to the first content of the obtained view and the data corresponding to the second content are collectively used as input of the createBitmap method to generate a bitmap to be adjusted; determining the view The width and the height. Further, according to the obtained width and height of the view, the canvas tool Canvas is called, and the bitmap to be adjusted is adjusted to generate a bitmap.
  • the generated bitmap may not be adjusted.
  • the size and resolution of the shared image are set according to the screen size and resolution of the sharer's mobile device, but the size of the image generated by this method is fixed, which makes the user want to get from the mobile phone.
  • the maximum size of the image will only be the screen size of the phone, which will affect the user's reading of the image content.
  • the first bitmap, the second bitmap, and the text header are spliced to generate a bitmap (for convenience of description, the bitmap may be referred to as a to-be-adjusted bit After the graph; adjust the parameter value according to the bitmap, adjust the bitmap to be adjusted, and generate the bitmap to be shared.
  • the bitmap adjustment parameter value can be obtained in the following two ways:
  • Method 1 The user sets the bitmap height value, the bitmap width value, and the pixel density value according to their own needs, and adjusts the parameter value as a bitmap.
  • the user can adjust the parameter value according to the size of the computer screen and the pixel density setting bitmap, and adjust the parameter value according to the set bitmap, and generate the The bitmap to be adjusted is adjusted.
  • the user can adjust the bitmap to be shared according to his own needs, and avoids the fact that when the image is shared from the small screen to the large screen, the received image is smaller because of the lack of adjustment, and the sharing is affected.
  • the user of the picture reads the content of the picture.
  • Method 2 The height value, the width value, and the pixel density value of the screen of the current mobile device device, Adjust the parameter value as a bitmap.
  • the height value, the width value, and the pixel density value of the current mobile phone screen are obtained as bitmap adjustment parameter values, and the parameter values are adjusted according to the acquired bitmap. Adjust the generated bitmap to be adjusted.
  • the method provided by the embodiment of the present application includes: by using the first bitmap, the second bitmap, the text title, and the obtained
  • the background bitmap is spliced to generate the bitmap to be shared.
  • the background bitmap can be generated in the following two ways:
  • the method a acquiring data corresponding to the background of the view, and generating the background bitmap according to the data corresponding to the background of the obtained view.
  • the data corresponding to the background of the view in which the movie order is currently located will be obtained, and according to the acquired data corresponding to the background. , generate a background bitmap. For example, if the data corresponding to the acquired background is a certain color value, a background bitmap of a solid color having the color value may be generated according to the color value.
  • Manner b Acquire data corresponding to the specified view, and generate the background bitmap according to the data corresponding to the specified view.
  • the data of the background view may be acquired, and according to the acquired data of the poster of the movie. , generating an electronic poster of the movie as a background bitmap.
  • the method provided by the embodiment of the present application can directly protect the picture to be shared. Save as a memory file and generate a URI of the picture to be shared.
  • the process of saving the image to be shared as a memory file does not need to go through the operation of the i/o port of the hard disk, which reduces the processing time and improves the efficiency of generating the URI of the picture to be shared.
  • the user may need to share the content of the at least two views
  • the method for achieving the object may include: acquiring data corresponding to the content of the specified at least two views, and according to The data generates a bitmap; the bitmap is saved in a memory, and a uniform resource identifier of the bitmap is generated and provided to other terminals.
  • the data corresponding to the first content of the view in which the movie ticket order is located and the data corresponding to the second content are respectively acquired.
  • the data corresponding to the view content of the train ticket order generates a train ticket order bitmap; and splicing the generated movie ticket order bitmap and the train ticket order bitmap to generate a bitmap as shown in FIG. 5,
  • the bitmap is stored in the phone memory in jpg format, and a uniform resource identifier is generated for other terminal devices, so as to share the content of multiple views.
  • the third-party application obtains the bitmap according to the generated uniform resource identifier, including: sending the unified resource identifier of the bitmap to the social platform by initiating a system sharing interface that invokes the social platform. So that the social platform performs the following operations: the social platform acquires the bitmap according to the uniform resource identifier of the bitmap, and provides a uniform resource identifier interface that accesses the bitmap, so that the third-party application invokes The uniform resource identifier interface of the bitmap obtains the bitmap.
  • the sharer application sets the generated uniform resource identifier of the bitmap to the intent
  • the social platform obtains a file handle of the memory file that saves the bitmap to be shared by using a reflection method, and initiates a system sharing interface that invokes the social platform, and sends the uniform resource identifier of the bitmap to the social platform.
  • the social platform acquires the bitmap and shares according to the uniform resource identifier of the bitmap.
  • the social platform provides an interface to access the uniform resource identifier (shareUri) of the bitmap.
  • the third-party application can obtain the call by using the shareUri interface. Obtaining a uniform resource identifier of the bitmap according to the memory file handle, and obtaining the bitmap according to the uniform resource identifier of the bitmap.
  • the intent is mainly used for communication between various components of an Android application.
  • the Intent is responsible for describing the action, action related data and additional data of the operation in the application.
  • the Android system is responsible for finding the corresponding component according to the description of the Intent, passing the Intent to the called component, and completing the component call, thereby implementing the corresponding Operation.
  • Embodiment 1 of the present application may generate a bitmap according to data corresponding to the content of the obtained view, and the view may be data according to a file in a non-image format displayed in a view manner.
  • the generated image can be used to share a non-image format file that can be displayed in a view.
  • execution bodies of the steps of the method provided in Embodiment 1 may all be the same device, or the method may also be performed by different devices.
  • the execution body of steps 11 and 12 may be device 1; for example, the execution body of step 11 may be device 1, the execution body of step 12 may be device 2, and the like.
  • Embodiment 2 of the present application provides a method for sharing a train ticket order, which is used to share a non-image format file that can be displayed in a view in the form of a picture.
  • the terminal is a mobile phone
  • the execution subject of the embodiment of the present application is an application installed on the mobile phone (hereinafter referred to as a sharing party application)
  • the party is The schematic diagram of the specific implementation process of the method is shown in Figure 6, which mainly includes the following steps:
  • Step 21 Obtain a view sharing instruction.
  • the view sharing instruction may be triggered by a specific operation (such as at least one of clicking, sliding, and long pressing) performed by a user on a specified location of the touch screen of the mobile phone.
  • the content displayed on the screen of the mobile phone is as shown in FIG. 7, and the user wants to share the train ticket order information in the view shown in FIG.
  • Step 22 Obtain data corresponding to the content of the view.
  • the data corresponding to the content of the view currently displayed on the mobile phone screen is acquired in response to the view sharing instruction acquired by performing step 21.
  • the data corresponding to the content of the view displayed on the mobile phone screen shown in FIG. 7 is acquired; wherein the acquired data includes: obtaining as shown in FIG. 7
  • the data corresponding to the first content in the wire frame area acquires data corresponding to the second content in the dotted frame area as shown in FIG. 7 .
  • the first content in the solid line frame area shown in FIG. 7 includes: the train number “Z45”, the departure station “Hangzhou”, the arrival station “Yellowstone”, the estimated departure time “11/26 23:04”, and the estimated arrival time. "11/26 23:09", seats “14 cars No. 05 in the middle shop", order number "E275874163", passenger name "Mr. Zeng”; as shown in Figure 7, the second content in the dotted box area includes: "SMS text Share” and "Expected arrival time: 11/26 23:09".
  • Step 23 Generate a bitmap to be spliced according to the data obtained by performing step 22;
  • step 22 data corresponding to the first content as shown in FIG. 7 and data corresponding to the second content as shown in FIG. 7 are acquired, and corresponding to the acquired first content.
  • Data respectively, generates a first bitmap as shown in FIG. 8, and a text title "train ticket card”; and generates a second bitmap as shown in FIG. 9 according to the data corresponding to the acquired second content.
  • the data corresponding to the background of the sharing application interface is obtained, and the background bitmap is generated according to the obtained data corresponding to the background of the sharing application interface.
  • Step 24 by loading a picture layout tool cardlayout, splicing the first bitmap, the second bitmap, the text title, and the background bitmap to generate a bitmap to be adjusted;
  • the sharer application sets the first bitmap, the second bitmap, the text title, and the background bitmap to the layout by loading the cardlayout, and uses the cardlayout to map the first bitmap and the second digit in the layout.
  • the graph, the text title, and the background bitmap are stitched together to generate a bitmap to be adjusted.
  • Step 25 Adjust the parameter value according to the bitmap, and adjust the generated bitmap to be adjusted to generate a bitmap to be shared.
  • bitmap adjustment parameter is set according to the user's own needs
  • bitmap width (Weight) and height (Height) set by the user are obtained
  • the createBitmap method in the Bitmap is called, according to the obtained bitmap width (Weight) and the bit. Height of the graph, call the canvas tool Canvas, adjust the bitmap to be adjusted, and generate the bitmap shareBitmap to be shared.
  • the bitmap shareBitmap is shown in Figure 10.
  • Step 26 the bitmap to be shared is saved in the memory, and the URI of the bitmap to be shared is obtained;
  • the bitmap to be shared obtained by performing step 25 is saved in the specified format in the memory, and the URI of the bitmap to be shared is generated.
  • the bitmap to be shared obtained by performing step 25 is saved in the jpg format to the memory file memFile, and the memory file handle is obtained by using the reflection technology, and the to-be-shared bit is read from the obtained memory file handle.
  • the URI can be, for example:
  • step 27 the acquired URI is shared.
  • the URI generated by performing step 26 can be set into the intent, and a system sharing interface that invokes the social platform is initiated, and the uniform resource identifier of the bitmap is sent to the social platform.
  • the social platform acquires the bitmap and shares according to the uniform resource identifier of the bitmap. Simultaneous social peace
  • the station provides an interface to access the Uniform Resource Identifier (shareUri) of the bitmap.
  • sharesUri Uniform Resource Identifier
  • the third-party application can obtain the call by using the shareUri interface. Obtaining a uniform resource identifier of the bitmap according to the memory file handle, and obtaining the bitmap according to the uniform resource identifier of the bitmap.
  • the receiver application and the sharer application may be applications installed on the same terminal, for example, when a social application installed on the same mobile phone “communicates” to the social application “WeChat” to share
  • the application “WeChat” is called the receiver application; it can also be the same application installed on different terminals, for example, when the social application "communication” installed on the mobile phone A is shared with the social application "communication” installed on the mobile phone B,
  • the social application "communication” installed on the mobile phone B is called a receiving application; it can also be a different application installed on different terminals, for example, a social application "communication” installed on the mobile phone A can be installed on the mobile phone B.
  • “When sharing, the social application "WeChat” installed on the mobile phone B is referred to as a recipient application.
  • Embodiment 2 of the present application may generate a bitmap according to data corresponding to the content of the obtained view, and the view may be data according to a file in a non-image format displayed in a view manner.
  • the generated image can be used to share a non-image format file that can be displayed in a view.
  • the embodiment of the present application provides a picture sharing device, which is used to share a non-picture format file that can be displayed in a view in the form of a picture.
  • a schematic structural diagram of the device is shown in FIG. 11, and includes a bitmap generating unit 31 and a bitmap sharing unit 32.
  • the bitmap generating unit 31 is configured to acquire data corresponding to the content of the view in the terminal, and generate a bitmap according to the data.
  • bitmap sharing unit 32 configured to save the bitmap in a memory, and generate a uniformity of the bitmap
  • the resource identifier is provided to other terminals.
  • the bitmap generating unit 31 is configured to: acquire the first rule according to the predetermined data, and acquire data corresponding to the first content of the view in the terminal; according to the obtained first content of the view
  • the corresponding data is generated as a bitmap.
  • the bitmap generating unit 31 may be configured to: acquire the first rule according to the predetermined data, acquire data corresponding to the title of the view, and data corresponding to the body of the view, corresponding to the first content of the view. The data.
  • the bitmap generating unit 31 is further configured to: acquire the second rule according to the predetermined data, and acquire data corresponding to the second content of the view in the terminal; according to the data corresponding to the first content and The data corresponding to the second content generates a bitmap.
  • the process of acquiring the data corresponding to the second content of the view in the terminal by the bitmap generating unit 31 according to the predetermined data may include: acquiring the type information of the view; The type information is used to determine a data acquisition requirement. According to the data acquisition requirement, data that matches the data acquisition requirement is obtained as data corresponding to the second content.
  • bitmap generating unit 31 is further configured to: acquire data corresponding to the title of the view; and acquire data corresponding to the body of the view.
  • the bitmap generating unit 31 is configured to: generate a text title of the view according to the acquired data corresponding to the title of the view; according to the obtained body of the view Data, generating a first bitmap; generating a second bitmap according to the acquired data matching the acquisition requirement; generating the second bitmap, the second bitmap, and the text header by splicing And the bitmap is directly generated according to the data corresponding to the acquired body of the view, the data matching the acquisition requirement, and the data corresponding to the title of the view.
  • the bitmap generating unit 31 is configured to: splicing the first bitmap, the second bitmap, and the text header to generate a bitmap to be adjusted; adjusting the parameter value according to the bitmap, and adjusting the location The bitmap is adjusted to generate the bitmap.
  • the bitmap adjustment parameter value includes: a bitmap height value set by a user, a bitmap width value, and a pixel density value; or a height value, a width value, and a screen of the mobile device device screen. Pixel density value.
  • the bitmap generating unit 31 is configured to generate the bitmap by splicing the first bitmap, the second bitmap, the text title, and the acquired background bitmap.
  • the bitmap generating unit 31 is further configured to: splicing the first bitmap, the second bitmap, the text title, and the acquired background bitmap to generate the bitmap, Acquiring the data corresponding to the background of the view, generating the background bitmap according to the data corresponding to the background of the obtained view; or acquiring data corresponding to the specified view, and according to the specified view
  • the corresponding bitmap data is generated by the corresponding data.
  • the bitmap sharing unit 32 is configured to save the bitmap as a memory file of a specified format.
  • the apparatus further includes: a system interface calling unit, configured to: unify the bitmap by initiating a system sharing interface that invokes the social platform
  • the resource identifier is sent to the social platform such that the social platform performs the following operations: the social platform acquires the bitmap according to the uniform resource identifier of the bitmap, and provides a uniform resource identifier interface that accesses the bitmap,
  • the bitmap is obtained in such a way that the third party application invokes the Uniform Resource Identifier interface of the bitmap.
  • the bitmap may be generated according to the data corresponding to the content of the obtained view, and the view may be based on a non-image format file displayed in a view manner.
  • the data is generated so that a file in a non-image format that can be displayed in a view can be shared in the form of a picture.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the present invention is directed to a method, apparatus (system), and computer program according to an embodiment of the present invention.
  • the flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cassette Disk storage or other magnetic storage devices or any other non-transportable media that can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

Abstract

Disclosed is a picture sharing method, which is used for sharing, in the form of a picture, a file in a non-picture format which can be displayed by means of a view. The method comprises: acquiring data corresponding to the content of a view in a terminal, and generating a bitmap according to the data; and storing the bitmap in a memory, and generating a uniform resource identifier of the bitmap and providing same to other terminals. Also disclosed is a picture sharing device.

Description

一种图片分享方法及装置Picture sharing method and device 技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及一种图片分享方法及装置。The present application relates to the field of image processing technologies, and in particular, to a picture sharing method and apparatus.
背景技术Background technique
一般地,通过图片来展示信息,可以使得用户对信息有清楚直观的了解。In general, displaying information through pictures can provide users with a clear and intuitive understanding of the information.
目前,为了使得用户能够清楚直观地了解其他用户分享的信息,现有技术提供一种采用图片的形式进行信息分享的方法。基于该方法,用户可以将移动端设备(比如手机或者平板电脑)上保存的图片分享到社交平台,以便其他用户可以通过第三方设备对分享的图片进行查看。At present, in order to enable users to clearly and intuitively understand information shared by other users, the prior art provides a method for information sharing in the form of pictures. Based on the method, the user can share the pictures saved on the mobile device (such as a mobile phone or a tablet) to the social platform, so that other users can view the shared pictures through the third party device.
上述现有技术存在的问题在于,仅支持以图片的形式对具备图片格式(比如JPG、BMP、PNG、GIF等格式)的文件进行分享,而对于非图片格式的文件,则不能以图片的形式进行分享。The above prior art has a problem in that only files in a picture format (such as JPG, BMP, PNG, GIF, etc.) are shared in the form of pictures, and files in a non-picture format cannot be in the form of pictures. Share it.
发明内容Summary of the invention
本申请实施例提供一种图片分享方法,用以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。An embodiment of the present application provides a method for sharing a picture, which is used to share a non-picture format file that can be displayed in a view in the form of a picture.
本申请实施例还提供一种图片分享装置,用以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。The embodiment of the present application further provides a picture sharing device, which is used to share a non-picture format file that can be displayed in a view in the form of a picture.
本申请实施例采用下述技术方案:The embodiments of the present application adopt the following technical solutions:
一种图片分享方法,包括:A method of image sharing, including:
获取终端中的视图的内容所对应的数据,并根据所述数据生成位图;Obtaining data corresponding to the content of the view in the terminal, and generating a bitmap according to the data;
将所述位图保存在内存中,并生成所述位图的统一资源标识符提供给其他终端。The bitmap is saved in memory, and a uniform resource identifier of the bitmap is generated and provided to other terminals.
一种图片分享装置,包括:A picture sharing device comprising:
位图生成单元,用于获取终端中的视图的内容所对应的数据,并根据所述 数据生成位图;a bitmap generating unit, configured to acquire data corresponding to content of the view in the terminal, and according to the Data generation bitmap;
位图分享单元,用于将所述位图保存在内存中,并生成所述位图的统一资源标识符提供给其他终端。a bitmap sharing unit, configured to save the bitmap in a memory, and generate a uniform resource identifier of the bitmap to provide to other terminals.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:The above at least one technical solution adopted by the embodiment of the present application can achieve the following beneficial effects:
由于可以根据获取到的视图的内容所对应的数据,生成位图,而所述视图,可以是根据以视图的方式展示的、非图片格式的文件的数据生成的,从而可以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。The bitmap may be generated according to the data corresponding to the content of the obtained view, and the view may be generated according to the data of the non-image format file displayed in a view manner, thereby realizing the form of the image. , share files that can be displayed in a view, not in image format.
附图说明DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1为本申请实施例提供的一种图片分享方法的具体流程示意图;FIG. 1 is a schematic flowchart of a picture sharing method according to an embodiment of the present application;
图2为本申请实施例提供的一种航班信息视图的具体示意图;2 is a schematic diagram of a flight information view according to an embodiment of the present application;
图3为本申请实施例提供的一种电影票信息视图的具体示意图;FIG. 3 is a schematic diagram of a movie ticket information view according to an embodiment of the present application;
图4为本申请实施例提供的一种火车票订单视图的具体示意图;4 is a schematic diagram of a train ticket order view provided by an embodiment of the present application;
图5为本申请实施例提供的一种火车票订单与电影票订单拼接视图的具体示意图;FIG. 5 is a schematic diagram of a stitching view of a train ticket order and a movie ticket order according to an embodiment of the present application; FIG.
图6为本申请实施例提供的一种图片分享方法的具体流程示意图;FIG. 6 is a schematic flowchart of a picture sharing method according to an embodiment of the present disclosure;
图7为本申请实施例提供的一种手机屏幕显示内容的具体示意图;FIG. 7 is a schematic diagram of a screen display content of a mobile phone according to an embodiment of the present application;
图8为本申请实施例提供的一种第一位图的示意图;FIG. 8 is a schematic diagram of a first bitmap according to an embodiment of the present disclosure;
图9为本申请实施例提供的一种第二位图的示意图;FIG. 9 is a schematic diagram of a second bitmap provided by an embodiment of the present application;
图10为本申请实施例提供的一种待分享的位图的示意图;FIG. 10 is a schematic diagram of a bitmap to be shared according to an embodiment of the present application;
图11为本申请实施例提供的一种图片分享装置的具体结构示意图。FIG. 11 is a schematic structural diagram of a picture sharing apparatus according to an embodiment of the present disclosure.
具体实施方式 detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described in the following with reference to the specific embodiments of the present application and the corresponding drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
实施例1Example 1
本实施例1提供一种图片分享方法,用以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。该方法的具体实现流程示意图如图1所示,主要包括下述步骤:The embodiment 1 provides a picture sharing method for sharing a file in a non-picture format that can be displayed in a view in the form of a picture. The schematic diagram of the specific implementation process of the method is shown in FIG. 1 and mainly includes the following steps:
步骤11,获取终端中的视图的内容所对应的数据,并根据所述数据生成位图(该位图可称为待分享的位图);Step 11: Acquire data corresponding to the content of the view in the terminal, and generate a bitmap according to the data (the bitmap may be referred to as a bitmap to be shared);
其中,所述的视图简单来说,可以是终端上的可视界面,主要包括:显示层、数据层以及控制层。在终端上,视图可以为用户提供可视的、可交互的屏幕元素,比如:按键、文本、表格以及图像等屏幕元素中的至少一个。例如,假设终端为手机,所述的视图可以是手机屏幕上所显示的任意界面,比如可以是手机屏幕上显示图片的界面,还可以是手机屏幕上显示短信内容的界面,也还可以是整个手机屏幕显示界面,等等。The view is simply a visual interface on the terminal, and mainly includes a display layer, a data layer, and a control layer. On the terminal, the view can provide the user with visual, interactive screen elements, such as at least one of screen elements such as buttons, text, tables, and images. For example, if the terminal is a mobile phone, the view may be any interface displayed on the screen of the mobile phone, such as an interface for displaying a picture on the screen of the mobile phone, or an interface for displaying the content of the short message on the screen of the mobile phone, or may be the whole Phone screen display interface, and more.
需要说明的是,用户看到的视图中的文字、图片、表格和视频,等等,均可称为视图的内容。视图所显示的不同内容,是根据该视图中的数据生成的。为便于描述,用于生成视图中内容的数据,可称为视图的内容所对应的数据。It should be noted that the text, pictures, tables and videos in the view that the user sees, etc., can be called the content of the view. The different content displayed by the view is generated from the data in the view. For ease of description, the data used to generate the content in the view may be referred to as the data corresponding to the content of the view.
比如,假设在用户的手机屏幕上显示了一则新闻视图(包括:照片、文字以及相关链接),那么一般地,在该视图的数据层中,会保存着构成该视图的数据,包括:照片、文字以及相关链接的数据,同时,在该视图的数据中,表示不同视图内容的数据具有不同的数据标识。例如,表示该视图文字内容的数 据的标识为“WB”,表示该视图照片内容的数据的标识为“ZP”,表示该视图相关链接内容的数据标识为“LJ”。则获取终端中视图的内容所对应的数据,具体可以包括:在终端的存储设备中,查询构成所述视图的数据,并根据所要获取的视图内容所对应的数据的数据标识,获取查询到该视图的数据中的、与数据标识对应的数据。For example, suppose a news view (including: photos, text, and related links) is displayed on the user's mobile phone screen. Generally, in the data layer of the view, the data constituting the view is saved, including: photos. Data, related texts, and data in the view, data representing different view contents have different data identifiers. For example, the number that represents the text content of the view The identifier of the data is "WB", indicating that the data of the view photo content is "ZP", and the data identifier of the link related content of the view is "LJ". The obtaining the data corresponding to the content of the view in the terminal may include: querying the data constituting the view in the storage device of the terminal, and obtaining the query according to the data identifier of the data corresponding to the view content to be acquired. The data corresponding to the data identifier in the data of the view.
例如,仍以上述在用户的手机屏幕上显示了一则新闻视图为例,假设用户期望获取该视图中的文字内容以及相关链接内容分别对应的数据,则可以在手机存储装置中查询构成该视图的数据,并根据所述“WB”以及“LJ”,在构成该视图的数据中查询文字内容以及相关链接内容分别对应的数据。For example, still taking the above-mentioned news view on the user's mobile phone screen as an example, if the user desires to obtain the text content in the view and the data corresponding to the related link content, the mobile phone storage device can be queried to form the view. According to the data of the "WB" and the "LJ", the data corresponding to the text content and the related link content are respectively queried in the data constituting the view.
在一种实施方式中,根据获取到的视图的内容所对应的数据,生成位图,具体可以包括:调用Bitmap中的createBitmap方法,并将获取到的视图的内容所对应的数据作为createBitmap方法的输入,以生成待调整的位图;确定该视图的宽度(Weight)以及高度(Height),进一步地,根据获取到的该视图宽度(Weight)以及视图高度(Height),调用画板工具Canvas,对待调整的位图进行调整,生成位图。In one embodiment, generating a bitmap according to the data corresponding to the content of the obtained view may specifically include: calling the createBitmap method in the Bitmap, and using the data corresponding to the content of the obtained view as the createBitmap method. Input to generate a bitmap to be adjusted; determine the width and height of the view, and further, according to the obtained width of the view (Weight) and the height of the view (Height), call the canvas tool Canvas, treat The adjusted bitmap is adjusted to generate a bitmap.
在一种实施方式中,获取终端中的视图的内容所对应的数据,可以包括:按照预定的数据获取第一规则,获取终端中的视图的第一内容所对应的数据。In an embodiment, acquiring data corresponding to the content of the view in the terminal may include: acquiring the first rule according to the predetermined data, and acquiring data corresponding to the first content of the view in the terminal.
其中,所述的预定的数据获取第一规则,可以但不仅限于包括以下四种规则:The predetermined data acquisition first rule may include, but is not limited to, the following four rules:
规则1:获取视图中占据面积最大的内容所对应的数据;Rule 1: Obtain the data corresponding to the content with the largest area in the view;
例如,假设以一则新闻的视图为例,该视图中,文字内容占据的面积较大,而图片内容占据的面积较小,则根据规则1,获取该视图的文字内容所对应的数据,并将根据数据获取第一规则获取到的文字内容所对应的数据,作为该视图的第一内容所对应的数据。For example, suppose a view of a news is taken as an example, in which the text content occupies a large area, and the image content occupies a small area, according to rule 1, the data corresponding to the text content of the view is obtained, and The data corresponding to the text content acquired according to the data acquisition first rule is used as the data corresponding to the first content of the view.
规则2:获取视图中指定类型的视图内容所对应的数据;Rule 2: Get the data corresponding to the view content of the specified type in the view;
例如,假设仍以一则新闻的视图为例,预定的数据获取第一规则为:获取 视图中文字类型的视图内容所对应的数据,则根据该规则,获取该视图的文字内容所对应的数据,并将根据数据获取第一规则获取到的文字内容所对应的数据,作为该视图的第一内容所对应的数据。For example, suppose that the view of a news is still taken as an example, the first rule of the predetermined data acquisition is: acquisition The data corresponding to the view content of the text type in the view is obtained according to the rule, and the data corresponding to the text content of the view is obtained, and the data corresponding to the text content obtained by the first rule according to the data is obtained as the view. The data corresponding to the first content.
规则3:获取视图中指定位置的视图内容所对应的数据;Rule 3: Obtain the data corresponding to the view content of the specified location in the view;
例如,假设以仍以一则新闻的视图为例,该视图的上半部分为文字内容,下半部分为图片内容,规则3为获取视图中上半部分的视图内容所对应的数据,则根据规则3,获取该视图的文字内容所对应的数据,并将根据数据获取第一规则获取到的文字内容所对应的数据,作为该视图的第一内容所对应的数据。For example, suppose that the view that is still in a news is taken as an example, the upper part of the view is the text content, the lower part is the picture content, and the rule 3 is the data corresponding to the view content of the upper part of the view, according to In the rule 3, the data corresponding to the text content of the view is obtained, and the data corresponding to the text content acquired according to the data acquisition first rule is used as the data corresponding to the first content of the view.
规则4:根据视图的类型信息,确定数据获取需求,并根据数据获取需求,获取视图中与所述获取需求匹配的数据;Rule 4: determining a data acquisition requirement according to the type information of the view, and acquiring data matching the obtaining requirement in the view according to the data obtaining requirement;
例如,假设以终端显示的一张电子电影票为例,根据规则4,当视图类型信息为电影票时,数据的获取需求为获取该电影票的电影名称、开场时间以及座位号。即根据规则4,分别获取该电子电影票上显示的电影名称所对应的数据、该电子电影票上显示的开场时间所对应的数据,以及该电子电影票上显示的座位号所对应的数据;并将根据数据获取第一规则获取到的电影名称、开场时间以及座位号所对应的数据,作为该电子电影票的第一内容所对应的数据。For example, suppose an electronic movie ticket displayed by the terminal is taken as an example. According to rule 4, when the view type information is a movie ticket, the data acquisition requirement is a movie name, an opening time, and a seat number for acquiring the movie ticket. That is, according to rule 4, the data corresponding to the movie name displayed on the electronic movie ticket, the data corresponding to the opening time displayed on the electronic movie ticket, and the data corresponding to the seat number displayed on the electronic movie ticket are respectively acquired; And the data corresponding to the movie name, the opening time, and the seat number acquired according to the data acquisition first rule is used as the data corresponding to the first content of the electronic movie ticket.
本申请实施例中,在获取到第一内容所对应的数据后,可以直接根据该数据,生成待分享的位图。比如,如前文所述,可以调用Bitmap中的createBitmap方法,并将获取到的视图的内容所对应的数据作为createBitmap方法的输入,以生成待分享的位图。进一步地,还可以对生成的该位图进行进一步调整,比如,可以根据获取到的视图宽度(Weight)以及视图高度(Height),调用画板工具Canvas,对生成的该位图进行调整,并以调整后的位图作为待分享的位图。In the embodiment of the present application, after the data corresponding to the first content is obtained, the bitmap to be shared may be directly generated according to the data. For example, as described above, the createBitmap method in the Bitmap can be called, and the data corresponding to the content of the obtained view is used as an input of the createBitmap method to generate a bitmap to be shared. Further, the generated bitmap may be further adjusted. For example, the canvas tool Canvas may be invoked according to the obtained view width and the height of the view, and the generated bitmap is adjusted and The adjusted bitmap is used as a bitmap to be shared.
需要说明的是,按照数据获取第一规则,有可能获取视图的所有内容对应的数据,此时,视图的第一内容即为所述所有内容;或者,按照该规则,也有可能获取视图的部分内容对应的数据,此时,视图的第一内容即为所述部分内容。 It should be noted that, according to the first rule of data acquisition, it is possible to obtain data corresponding to all contents of the view. At this time, the first content of the view is all the content; or, according to the rule, it is also possible to obtain the part of the view. The data corresponding to the content, at this time, the first content of the view is the partial content.
当视图的第一内容为所述部分内容时,视图中除第一内容外的其他部分或全部内容可称为第二内容。在一些实际场景中,用户可能不仅会期望分享第一内容,还期望分享第二内容。为满足用户的该需求,在一种实施方式中,获取终端中的视图的内容所对应的数据,还可以包括:按照预定的数据获取第二规则,获取所述视图的第二内容所对应的数据;并根据所述第一内容所对应的数据以及第二内容所对应的数据,生成位图。此处所述的数据获取第二规则,也可以但不限于包括以上所述的四种规则,此处不再赘述。When the first content of the view is the partial content, some or all of the content other than the first content in the view may be referred to as the second content. In some practical scenarios, the user may not only expect to share the first content, but also desire to share the second content. In an implementation manner, the acquiring the data corresponding to the content of the view in the terminal may further include: acquiring the second rule according to the predetermined data, and acquiring the second content corresponding to the view. And generating a bitmap according to the data corresponding to the first content and the data corresponding to the second content. The second rule is obtained by the data, and may be, but is not limited to, the four rules described above, and details are not described herein again.
本申请实施例中,也可以根据视图内容的属性,来对第一内容以及第二内容进行区分。这里所说内容的属性,包括但不仅限于下述至少一种:In the embodiment of the present application, the first content and the second content may also be distinguished according to attributes of the view content. The attributes of the content referred to herein include, but are not limited to, at least one of the following:
1、内容的呈现方式——例如,当内容为文字和/或图片时,可以在视图上用第一色彩(如某种鲜艳的色彩)呈现第一内容,用第二色彩(如某种较暗的色彩)来呈现第二内容,从而根据第一色彩和第二色彩,可以区分第一内容和第二内容;又比如,可以根据内容在视图中占据的区域的大小,区分第一内容和第二内容——如,在视图中占据的区域不小于整个视图的50%的,可以作为第一内容,而在视图中占据的区域小于整个视图的50%的,可以作为第二内容;又比如,可以根据内容是否完整呈现,来区分第一内容和第二内容——如,按照缩略的方式呈现的,可以作为第二内容,而按照完整的方式呈现的,可以作为第一内容;再比如,以较高的图像分辨率呈现的,可以作为第一内容,以较低的图像分辨率低呈现的,可以作为第二内容;等等。1, the way the content is presented - for example, when the content is text and / or picture, you can use the first color (such as some bright colors) to render the first content on the view, with a second color (such as some kind of comparison a dark color) to present the second content, so that the first content and the second content can be distinguished according to the first color and the second color; for example, the first content and the content can be distinguished according to the size of the area occupied by the content in the view. The second content - for example, the area occupied in the view is not less than 50% of the entire view, can be used as the first content, and the area occupied in the view is less than 50% of the entire view, which can be used as the second content; For example, the first content and the second content may be distinguished according to whether the content is completely presented, for example, presented in an abbreviated manner, and may be presented as a second content, and presented in a complete manner, as the first content; For another example, the image presented at a higher image resolution can be presented as the first content, lower at a lower image resolution, and can be used as the second content;
2、功能——第一内容的功能,比如可以是呈现一些用户关注的信息;而第二内容的功能,则是用于向用户指示可以针对第一内容执行的操作或者与第一内容相关的信息。例如,某视图的第一内容可以为电影名称、主要演员名称、导演名称以及上映时间等,而第二内容可以为该电影票的在线购买操作入口、出品方信息以及该电影的相关宣传活动的信息,等。2. Function - the function of the first content, for example, may be information that presents some user attention; and the function of the second content is used to indicate to the user that the operation that can be performed for the first content or related to the first content information. For example, the first content of a view may be a movie name, a main actor name, a director name, a release time, etc., and the second content may be an online purchase operation entry of the movie ticket, a producer information, and a related promotion of the movie. Information, etc.
3、数据标识——例如,可以预先为视图对应的数据分配不同的内容标识,比如分配第一内容标识或第二内容标识,从而具备第一内容标识的数据对应的 内容,可以作为第一内容,而具备第二内容标识的数据对应的内容,可以作为第二内容。3, data identification - for example, the data corresponding to the view may be assigned different content identifiers, for example, the first content identifier or the second content identifier is assigned, thereby corresponding to the data of the first content identifier. The content may be the first content, and the content corresponding to the data having the second content identifier may be used as the second content.
步骤12,将所述位图保存在内存中,并生成所述位图的统一资源标识符(Uniform Resource Identifier,URI)提供给其他终端。In step 12, the bitmap is saved in the memory, and a Uniform Resource Identifier (URI) of the bitmap is generated and provided to other terminals.
需要说明的是,可以将通过执行步骤11获取到的位图以指定格式保存到内存中。其中,所述的指定格式,可以包括但不仅限于以下格式:比如JPG、BMP、PNG、GIF,等等。It should be noted that the bitmap obtained by performing step 11 can be saved into the memory in a specified format. The specified format may include, but is not limited to, the following formats: JPG, BMP, PNG, GIF, and the like.
在一种实施方式中,将通过执行步骤11获取到的待分享的位图以指定格式(比如JPG格式)保存为内存文件,并生成所述位图的URI提供给其他终端。In one embodiment, the bitmap to be shared obtained by performing step 11 is saved as a memory file in a specified format (such as JPG format), and the URI of the bitmap is generated and provided to other terminals.
采用本申请实施例提供的上述方法,由于可以根据获取到的视图的内容所对应的数据,生成位图,而所述视图,可以是根据以视图的方式展示的、非图片格式的文件的数据生成的,从而可以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。According to the foregoing method provided by the embodiment of the present application, a bitmap may be generated according to data corresponding to the content of the obtained view, and the view may be data according to a file in a non-image format displayed in a view manner. The generated image can be used to share a non-image format file that can be displayed in a view.
以下对步骤11以及步骤12进行进一步说明: Step 11 and step 12 are further explained below:
需要说明的是,可以将视图的第一内容的类型,作为视图的类型。比如,视图的第一内容为火车票订单信息,则该视图的类型可以为火车票;还比如,视图的第一内容为小说的文字信息,则该视图的类型可以为小说。本申请实施例中,视图第一内容的类型,可以是根据第一内容对应的、用于表示第一内容类型的数据确定的。It should be noted that the type of the first content of the view can be used as the type of the view. For example, if the first content of the view is train ticket order information, the type of the view may be a train ticket; for example, if the first content of the view is text information of the novel, the type of the view may be a novel. In the embodiment of the present application, the type of the first content of the view may be determined according to data corresponding to the first content and used to represent the first content type.
一般地,不同类型的视图,往往具有不同的特点,当视图中包含第二内容时,这些不同的特点,可以从一定程度上决定用户期望从该视图的内容中获取什么样的第二内容。为了满足用户对不同类型视图的第二内容的不同获取需求,在一种实施方式中,本申请实施例提供的方法包括:获取所述视图的类型信息;根据所述类型信息,确定对于第二内容对应的数据的获取需求;根据所述获取需求,从所述第二内容所对应的数据中,获取与所述获取需求匹配的数 据。Generally, different types of views often have different characteristics. When the second content is included in the view, these different features can determine to some extent what kind of second content the user desires to obtain from the content of the view. In an embodiment, the method provided by the embodiment of the present application includes: acquiring type information of the view; and determining, according to the type information, the second type, in order to meet different requirements for the second content of the different types of views. The acquisition requirement of the data corresponding to the content; and the number matching the acquisition requirement is obtained from the data corresponding to the second content according to the obtaining requirement according to.
例如,假设用户想对如图2所示的视图中的航班信息进行分享,视图中的内容:“航班号:XXXX”、“北京—杭州”、“2015年6月26日”、“08:55am—10:15am”以及“飞机票”,为该视图的第一内容;而视图中的内容:“飞机型号”、“航空公司”以及“飞机图片”,为该视图的第二内容。该视图的第一内容为机票信息,则可以确定该视图的类型信息为“出行机票”。根据该类型信息,可以确定用户对于该视图的第二内容的获取需求为:“飞机型号”以及“航空公司”,则根据该获取需求,分别获取第二内容中“飞机型号”所对应的数据以及“航空公司”所对应的数据。For example, suppose the user wants to share the flight information in the view as shown in FIG. 2, the contents of the view: "flight number: XXXX", "Beijing-Hangzhou", "June 26, 2015", "08: 55am—10:15am” and “airplane ticket” are the first content of the view; and the contents of the view: “aircraft model”, “airline” and “airplane picture” are the second content of the view. The first content of the view is ticket information, and the type information of the view may be determined as “travel ticket”. According to the type information, it may be determined that the user's acquisition requirement for the second content of the view is: “airplane model” and “airline”, respectively, according to the acquisition requirement, respectively acquiring data corresponding to “aircraft model” in the second content. And the data corresponding to the "airline".
还比如,假设用户想对如图3所示的视图中的电影宣传海报进行分享,其中,“电影宣传海报”为该视图的第一内容;而“导演”、“主要演员表”、“上映时间”以及“投资方”为该视图的第二内容。该视图的第一内容的类型信息为“电影宣传海报”,则可以确定用户对于该视图的第二内容的获取需求为“导演”、“主要演员表”以及“上映时间”,则根据该获取需求,分别获取第二内容中“导演”所对应的数据、“主要演员表”所对应的数据以及“上映时间”所对应的数据。For example, suppose the user wants to share the movie poster in the view as shown in FIG. 3, wherein the "movie poster" is the first content of the view; and the "director", "main cast", "release" Time" and "investor" are the second content of the view. The type information of the first content of the view is “movie poster”, and it may be determined that the user’s acquisition requirement for the second content of the view is “director”, “main cast”, and “release time”, according to the acquisition. The data is obtained by the data corresponding to the "director" in the second content, the data corresponding to the "main cast", and the data corresponding to the "release time".
一般地,用户期望进行分享的视图的第一内容,往往可以包括视图的标题以及视图的主体,在一种实施方式中,获取终端的视图内容所对应的数据,具体包括:获取所述视图的标题所对应的数据;获取所述视图的主体所对应的数据。Generally, the first content of the view that the user desires to share may include the title of the view and the body of the view. In an embodiment, acquiring data corresponding to the view content of the terminal includes: acquiring the view. The data corresponding to the title; the data corresponding to the body of the view is obtained.
例如,如图2所示,视图的第一内容包括:“航班号:XXXX”、“北京—杭州”、“2015年6月26日”、“08:55am—10:15am”以及“飞机票”。其中,“飞机票”为视图第一内容的标题,而视图的第一内容中除“飞机票”外的其他内容为视图的主体,则按照上述实施方式,获取该视图的内容所对应的数据时,可以分别获取视图标题“飞机票”所对应的数据,以及所述视图主体所对应的数据。For example, as shown in Figure 2, the first content of the view includes: "flight number: XXXX", "Beijing-Hangzhou", "June 26, 2015", "08:55am-10:15am", and "airfare ticket" ". Wherein, the "air ticket" is the title of the first content of the view, and the content other than the "air ticket" in the first content of the view is the main body of the view, according to the above embodiment, the data corresponding to the content of the view is obtained. At the same time, the data corresponding to the view title "airplane ticket" and the data corresponding to the view body can be separately obtained.
需要说明的是,为了便于接收到分享图片的用户可以较清楚的了解该分享 图片的标题信息,在一种实施方式中,本申请实施例提供的方法包括:根据获取到的所述视图的标题所对应的数据,生成所述视图的文字标题;根据获取到的所述视图的主体所对应的数据,生成第一位图;根据获取到的与所述获取需求匹配的数据,生成第二位图;通过将所述第一位图、第二位图以及所述文字标题进行拼接,生成待分享的位图。It should be noted that in order to facilitate the user who receives the shared picture, the sharing can be clearly understood. The title information of the image, in an embodiment, the method provided by the embodiment of the present application includes: generating a text title of the view according to the obtained data corresponding to the title of the view; according to the obtained view Generating a first bitmap according to the data corresponding to the body; generating a second bitmap according to the acquired data matching the acquisition requirement; by using the first bitmap, the second bitmap, and the text title Splicing is performed to generate a bitmap to be shared.
在一种实施方式中,将所述第一位图、第二位图以及所述文字标题进行拼接,生成待分享的位图的具体方式,比如可以包括:通过加载图片布局工具cardlayout,并将所述第一位图、第二位图以及文字标题设置到图片布局中,以达到将所述第一位图、第二位图以及文字标题拼接到同一图片布局中的目的;确定用户设置的位图宽度(Weight)以及位图高度(Height),并调用Bitmap中的createBitmap方法以及画板工具Canvas,根据所述位图宽度(Weight)、位图高度(Height)以及设置完成的图片布局,生成待分享的位图。In an embodiment, the first bitmap, the second bitmap, and the text header are spliced to generate a bitmap to be shared, for example, by loading a picture layout tool cardlayout, and The first bitmap, the second bitmap, and the text title are set in the picture layout to achieve the purpose of splicing the first bitmap, the second bitmap, and the text title into the same image layout; determining user settings The bitmap width (Weight) and the bitmap height (Height), and call the createBitmap method in the Bitmap and the canvas tool Canvas, according to the bitmap width (Weight), bitmap height (Height) and set the completed image layout, generate Bitmap to share.
例如,假设用户想要采用分享图片的形式,对如图4所示的火车票订单的视图进行分享,其中包括以下信息:“车次XXX”、“杭州—黄石”、“席次”、“出发时间”、“旅客姓名”、“火车票”等第一内容所对应的数据,以及“订单号”和“到达时间”等第二内容所对应的数据;根据获取到的“火车票”对应的数据,生成文字“火车票”作为文字标题,根据获取到的“车次XXX”、“杭州—黄石”、“席次”、“出发时间”以及“旅客姓名”所对应的数据,生成第一位图,根据“订单号”和“到达时间”所对应的数据,生成第二位图,并通过加载图片布局(cardlayout)工具,将上述的文字标题、第一位图以及第二位图拼接,生成如图4所示的一张位图,该位图即可以作为待分享的位图。For example, suppose the user wants to share the view of the train ticket order as shown in FIG. 4 in the form of a shared picture, including the following information: "car XXX", "Hangzhou-Huangshi", "seat", "departure time" Data corresponding to the first content such as "passenger name" and "train ticket", and data corresponding to the second content such as "order number" and "arrival time"; according to the data corresponding to the obtained "train ticket" The text "train ticket" is generated as the text title, and the first bitmap is generated according to the data corresponding to the obtained "car XXX", "Hangzhou-Huangshi", "seat", "departure time" and "passenger name". According to the data corresponding to the "order number" and the "arrival time", a second bitmap is generated, and the text title, the first bitmap, and the second bitmap are spliced by loading a card layout tool to generate A bitmap shown in Figure 4, which can be used as a bitmap to be shared.
当然,本申请实施例中,也可以通过对前文所述的第一位图和第二位图进行拼接,生成待分享的位图;或者,可以通过对该第一位图和生成的所述文字标题进行拼接,生成待分享的位图;或者,还可以仅根据获取到的视图的主体所对应的数据,生成待分享的位图;等等。在实际应用中,待分享的位图是否需要拼接得到,或者,作为拼接对象的位图具体是根据获得的哪些数据生成的, 往往取决于实际需求,本申请实施例对拼接对象不做限定。Of course, in the embodiment of the present application, the first bitmap and the second bitmap described in the foregoing may be spliced to generate a bitmap to be shared; or, by using the first bitmap and the generated bitmap The text title is spliced to generate a bitmap to be shared; or, the bitmap to be shared may be generated based only on the data corresponding to the body of the obtained view; In practical applications, whether the bitmap to be shared needs to be stitched together, or the bitmap as the stitching object is specifically generated according to which data is obtained, The embodiment of the present application does not limit the splicing object.
需要说明的是,在一种实施方式中,还可以直接根据获取到的第一内容所对应的数据以及第二内容所对应的数据,直接生成一张位图而不需要进行位图拼接。比如,可以调用Bitmap中的createBitmap方法,并将获取到的视图的第一内容所对应的数据以及第二内容所对应的数据共同作为createBitmap方法的输入,以生成待调整的位图;确定该视图的宽度(Weight)以及高度(Height),进一步地,根据获取到的该视图宽度(Weight)以及视图高度(Height),调用画板工具Canvas,对待调整的位图进行调整,生成位图。可选的,也可以不对生成的位图进行调整。It should be noted that, in an implementation manner, a bitmap may be directly generated according to the data corresponding to the acquired first content and the data corresponding to the second content, without performing bitmap splicing. For example, the createBitmap method in the Bitmap may be invoked, and the data corresponding to the first content of the obtained view and the data corresponding to the second content are collectively used as input of the createBitmap method to generate a bitmap to be adjusted; determining the view The width and the height. Further, according to the obtained width and height of the view, the canvas tool Canvas is called, and the bitmap to be adjusted is adjusted to generate a bitmap. Optionally, the generated bitmap may not be adjusted.
一般地,分享的图片的尺寸大小及分辨率是按照分享者的移动端设备的屏幕尺寸及分辨率设置的,但采用该方式生成的图片的大小是固定的,这就使得当用户想从手机上分享一个图片到电脑上时,图片的最大尺寸将只有手机的屏幕大小,从而会影响用户对图片内容的阅读。为了避免该问题,在一种实施方式中,在将所述第一位图、第二位图以及所述文字标题进行拼接,生成位图(为便于描述,该位图可称为待调整位图)后;根据位图调整参数值,调整待调整位图,生成待分享的位图。其中,所述的位图调整参数值可以采用以下两种方式获取:Generally, the size and resolution of the shared image are set according to the screen size and resolution of the sharer's mobile device, but the size of the image generated by this method is fixed, which makes the user want to get from the mobile phone. When sharing an image onto a computer, the maximum size of the image will only be the screen size of the phone, which will affect the user's reading of the image content. In order to avoid the problem, in an implementation manner, the first bitmap, the second bitmap, and the text header are spliced to generate a bitmap (for convenience of description, the bitmap may be referred to as a to-be-adjusted bit After the graph; adjust the parameter value according to the bitmap, adjust the bitmap to be adjusted, and generate the bitmap to be shared. The bitmap adjustment parameter value can be obtained in the following two ways:
方式1:用户根据自身的需要,自行设置位图高度值、位图宽度值以及像素密度值,作为位图调整参数值。Method 1: The user sets the bitmap height value, the bitmap width value, and the pixel density value according to their own needs, and adjusts the parameter value as a bitmap.
例如,假设用户想要将手机上生成的位图分享到电脑上,则用户可以按照电脑屏幕的尺寸以及像素密度设置位图调整参数值,并按照设置好的位图调整参数值,对生成的待调整位图进行调整。通过该方式,用户可以根据自己的需要,对待分享的位图进行调整,避免了从小屏幕上分享图片到大屏幕上时,由于未进行调整,而使得接收到的图片较小,影响接收到分享图片的用户对图片内容的阅读。For example, if the user wants to share the bitmap generated on the mobile phone to the computer, the user can adjust the parameter value according to the size of the computer screen and the pixel density setting bitmap, and adjust the parameter value according to the set bitmap, and generate the The bitmap to be adjusted is adjusted. In this way, the user can adjust the bitmap to be shared according to his own needs, and avoids the fact that when the image is shared from the small screen to the large screen, the received image is smaller because of the lack of adjustment, and the sharing is affected. The user of the picture reads the content of the picture.
方式2:将当前移动端设备屏幕的高度值、宽度值以及屏幕的像素密度值, 作为位图调整参数值。Method 2: The height value, the width value, and the pixel density value of the screen of the current mobile device device, Adjust the parameter value as a bitmap.
例如,假设用户想对手机上生成的位图进行分享,则获取当前手机屏幕的高度值、宽度值以及屏幕的像素密度值作为位图调整参数值,并按照获取到的位图调整参数值,对生成的待调整的位图进行调整。For example, if the user wants to share the bitmap generated on the mobile phone, the height value, the width value, and the pixel density value of the current mobile phone screen are obtained as bitmap adjustment parameter values, and the parameter values are adjusted according to the acquired bitmap. Adjust the generated bitmap to be adjusted.
需要说明的是,为了提升分享图片的观赏效果,在一种实施方式中,本申请实施例提供方法包括:通过将所述第一位图、第二位图、所述文字标题以及获取到的背景位图进行拼接,生成所述待分享的位图。其中,所述的背景位图可以通过以下两种方式生成:It should be noted that, in order to improve the viewing effect of the shared picture, in an embodiment, the method provided by the embodiment of the present application includes: by using the first bitmap, the second bitmap, the text title, and the obtained The background bitmap is spliced to generate the bitmap to be shared. The background bitmap can be generated in the following two ways:
方式a:获取所述视图的背景所对应的数据,根据获取到的所述视图的背景所对应的数据,生成所述背景位图。The method a: acquiring data corresponding to the background of the view, and generating the background bitmap according to the data corresponding to the background of the obtained view.
例如,假设用户要对一张电影票订单进行分享,在进行分享时,将获取所述电影片订单当前所在的视图的背景所对应的数据,并根据获取到的所述的背景所对应的数据,生成背景位图。比如,获取到的背景所对应的数据为某颜色值,则可以根据该颜色值生成具备该颜色值的纯色的背景位图。For example, if the user wants to share a movie ticket order, when sharing, the data corresponding to the background of the view in which the movie order is currently located will be obtained, and according to the acquired data corresponding to the background. , generate a background bitmap. For example, if the data corresponding to the acquired background is a certain color value, a background bitmap of a solid color having the color value may be generated according to the color value.
方式b:获取指定的视图所对应的数据,并根据所述指定的视图所对应的数据,生成所述背景位图。Manner b: Acquire data corresponding to the specified view, and generate the background bitmap according to the data corresponding to the specified view.
例如,假设用户要对一个电影票订单进行分享,且获取到用户对于一张该电影的海报视图的选取指令,则可以获取上述背景视图的数据,并根据获取到的所述电影的海报的数据,生成作为背景位图的该电影的电子海报。For example, if the user wants to share a movie ticket order and obtains a user's selection instruction for a poster view of the movie, the data of the background view may be acquired, and according to the acquired data of the poster of the movie. , generating an electronic poster of the movie as a background bitmap.
需要说明的是,基于一些相关技术,当期望生成待分享的图片的URI,并提供给其他终端时,首先需要将该图片以文件的形式保存到硬盘中,假设将该图片保存为硬盘中的“/sdcard/storage/card_images/carda.jpg”文件,进而根据该文件的访问路径生成URI。将图片保存为硬盘中的文件的过程,需要经过对硬盘的输入输出(input/output,i/o)端口进行操作的过程,该过程的处理时间较长,即通过该技术生成待分享图片的URI的效率较低。It should be noted that, based on some related technologies, when it is desired to generate a URI of a picture to be shared and provide it to other terminals, the picture needs to be saved to the hard disk in the form of a file, and it is assumed that the picture is saved as a hard disk. The "/sdcard/storage/card_images/carda.jpg" file, which in turn generates a URI based on the access path of the file. The process of saving a file as a file on a hard disk requires a process of inputting an input/output (i/o) port of the hard disk. The processing time of the process is long, that is, the image to be shared is generated by the technology. URIs are less efficient.
在一种实施方式中,本申请实施例提供的方法可以直接将待分享的图片保 存为内存文件,并生成所述待分享的图片的URI。其中,将待分享的图片保存为内存文件的过程,不需要经过对硬盘的i/o端口进行操作的过程,减少了处理时间,提高了生成待分享图片的URI的效率。In an embodiment, the method provided by the embodiment of the present application can directly protect the picture to be shared. Save as a memory file and generate a URI of the picture to be shared. The process of saving the image to be shared as a memory file does not need to go through the operation of the i/o port of the hard disk, which reduces the processing time and improves the efficiency of generating the URI of the picture to be shared.
例如,假设通过执行步骤11获取到待分享的位图:“shareBitmap”,并将“shareBitmap”以jpg的格式直接写入到内存文件memFile中,并生成URI:“shareUri=content://com.yunos.lifecard/share_cardimg/aa.jpg”。For example, suppose that step 11 is used to obtain the bitmap to be shared: "shareBitmap", and "shareBitmap" is directly written to the memory file memFile in jpg format, and a URI is generated: "shareUri=content://com. Yunos.lifecard/share_cardimg/aa.jpg".
需要说明的是,在一种实施方式中,用户可能需要对至少两幅视图的内容进行分享,则实现该目的的方法可以包括:获取指定的至少两张视图的内容所对应的数据,并根据所述数据生成位图;将所述位图保存在内存中,并生成所述位图的统一资源标识符提供给其他终端。It should be noted that, in an implementation manner, the user may need to share the content of the at least two views, and the method for achieving the object may include: acquiring data corresponding to the content of the specified at least two views, and according to The data generates a bitmap; the bitmap is saved in a memory, and a uniform resource identifier of the bitmap is generated and provided to other terminals.
比如,假设用户想要将手机上的电影票订单以及火车票订单均进行分享,则将分别对电影票订单所在的视图的第一内容所对应的数据以及第二内容所对应的数据进行获取,根据获取的电影票订单所在的视图内容所对应的数据生成电影票订单位图;并对火车票订单所在的视图的第一内容所对应的数据以及第二内容所对应的数据进行获取,根据获取的火车票订单所在的视图内容所对应的数据生成火车票订单位图;并对上述生成的电影票订单位图以及火车票订单位图进行拼接,生成如图5所示的位图,将所述位图以jpg格式保存在手机内存中,并生成统一资源标识符提供给其他终端设备,从而达到对多张视图内容进行分享的目的。For example, if the user wants to share the movie ticket order and the train ticket order on the mobile phone, the data corresponding to the first content of the view in which the movie ticket order is located and the data corresponding to the second content are respectively acquired. Generating a movie ticket order bitmap according to the data corresponding to the view content of the obtained movie ticket order; and acquiring data corresponding to the first content of the view in which the train ticket order is located and data corresponding to the second content, according to the acquisition The data corresponding to the view content of the train ticket order generates a train ticket order bitmap; and splicing the generated movie ticket order bitmap and the train ticket order bitmap to generate a bitmap as shown in FIG. 5, The bitmap is stored in the phone memory in jpg format, and a uniform resource identifier is generated for other terminal devices, so as to share the content of multiple views.
在一种实施方式中,第三方应用根据生成的统一资源标识符,获得位图的方法,包括:通过发起调用社交平台的系统分享接口,将所述位图的统一资源标识符发送至社交平台,以使得社交平台执行下述操作:社交平台根据所述位图的统一资源标识符,获取所述位图,并提供访问所述位图的统一资源标识符接口,以使得第三方应用通过调用所述位图的统一资源标识符接口,获得所述位图。In an embodiment, the third-party application obtains the bitmap according to the generated uniform resource identifier, including: sending the unified resource identifier of the bitmap to the social platform by initiating a system sharing interface that invokes the social platform. So that the social platform performs the following operations: the social platform acquires the bitmap according to the uniform resource identifier of the bitmap, and provides a uniform resource identifier interface that accesses the bitmap, so that the third-party application invokes The uniform resource identifier interface of the bitmap obtains the bitmap.
具体的,分享方应用将生成的所述位图的统一资源标识符设置到intent中, 并社交平台通过反射方法获得保存有待分享位图的内存文件的文件句柄,并发起调用社交平台的系统分享接口,将所述位图的统一资源标识符发送至社交平台。社交平台根据所述位图的统一资源标识符,获取所述位图并分享。同时社交平台提供访问所述位图的统一资源标识符(shareUri)的接口。同时,利用反射方法执行内存文件的getFileDescriptor方法获取内存文件句柄,再调用ParcelFileDescriptor工具类的dup方法获得可返回给第三方应用使用的内存文件句柄,则第三方应用通过调用所述shareUri接口,可以获得根据该内存文件句柄获得所述位图的统一资源标识符,并根据所述位图的统一资源标识符,获得所述位图。Specifically, the sharer application sets the generated uniform resource identifier of the bitmap to the intent, And the social platform obtains a file handle of the memory file that saves the bitmap to be shared by using a reflection method, and initiates a system sharing interface that invokes the social platform, and sends the uniform resource identifier of the bitmap to the social platform. The social platform acquires the bitmap and shares according to the uniform resource identifier of the bitmap. At the same time, the social platform provides an interface to access the uniform resource identifier (shareUri) of the bitmap. At the same time, using the reflection method to execute the getFileDescriptor method of the memory file to obtain the memory file handle, and then calling the dup method of the ParcelFileDescriptor tool class to obtain a memory file handle that can be returned to the third-party application, the third-party application can obtain the call by using the shareUri interface. Obtaining a uniform resource identifier of the bitmap according to the memory file handle, and obtaining the bitmap according to the uniform resource identifier of the bitmap.
其中,所述的intent主要是用于Android应用的各项组件之间的通讯。Intent负责对应用中一次操作的动作、动作涉及数据、附加数据进行描述,Android系统则根据Intent的描述,负责找到对应的组件,将Intent传递给调用的组件,并完成组件的调用,从而实现相应的操作。The intent is mainly used for communication between various components of an Android application. The Intent is responsible for describing the action, action related data and additional data of the operation in the application. The Android system is responsible for finding the corresponding component according to the description of the Intent, passing the Intent to the called component, and completing the component call, thereby implementing the corresponding Operation.
本申请实施例1提供的上述方法,由于可以根据获取到的视图的内容所对应的数据,生成位图,而所述视图,可以是根据以视图的方式展示的、非图片格式的文件的数据生成的,从而可以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。The foregoing method provided in Embodiment 1 of the present application may generate a bitmap according to data corresponding to the content of the obtained view, and the view may be data according to a file in a non-image format displayed in a view manner. The generated image can be used to share a non-image format file that can be displayed in a view.
需要说明的是,实施例1所提供方法的各步骤的执行主体均可以是同一设备,或者,该方法也由不同设备作为执行主体。比如,步骤11和步骤12的执行主体可以为设备1;又比如,步骤11的执行主体可以为设备1,步骤12的执行主体可以为设备2;等等。It should be noted that the execution bodies of the steps of the method provided in Embodiment 1 may all be the same device, or the method may also be performed by different devices. For example, the execution body of steps 11 and 12 may be device 1; for example, the execution body of step 11 may be device 1, the execution body of step 12 may be device 2, and the like.
实施例2Example 2
本申请实施例2提供一种火车票订单的分享方法,用以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。假设终端为手机,且假设本申请实施例的执行主体为手机上安装的应用(后文称分享方应用),则该方 法的具体实现流程示意图如图6所示,主要包括下述步骤:Embodiment 2 of the present application provides a method for sharing a train ticket order, which is used to share a non-image format file that can be displayed in a view in the form of a picture. Assuming that the terminal is a mobile phone, and the execution subject of the embodiment of the present application is an application installed on the mobile phone (hereinafter referred to as a sharing party application), the party is The schematic diagram of the specific implementation process of the method is shown in Figure 6, which mainly includes the following steps:
步骤21,获取视图分享指令;Step 21: Obtain a view sharing instruction.
需要说明的是,所述的视图分享指令可以是通过用户对手机触摸屏的指定位置进行的特定操作(如:点击、滑动以及长按等操作中的至少一种)而触发的。It should be noted that the view sharing instruction may be triggered by a specific operation (such as at least one of clicking, sliding, and long pressing) performed by a user on a specified location of the touch screen of the mobile phone.
例如,手机屏幕显示的内容如图7所示,用户想要将如图7所示的视图中的火车票订单信息进行分享。用户通过对如图7所示手机屏幕上显示有“短信文本分享”的区域进行点击,以触发分享方应用获取到对该视图的分享指令。For example, the content displayed on the screen of the mobile phone is as shown in FIG. 7, and the user wants to share the train ticket order information in the view shown in FIG. The user clicks on the area where the "sms text sharing" is displayed on the screen of the mobile phone as shown in FIG. 7 to trigger the sharing party application to obtain the sharing instruction for the view.
步骤22,获取所述视图的内容所对应的数据;Step 22: Obtain data corresponding to the content of the view.
响应于通过执行步骤21获取到的视图分享指令,对手机屏幕当前显示的视图的内容所对应的数据进行获取。The data corresponding to the content of the view currently displayed on the mobile phone screen is acquired in response to the view sharing instruction acquired by performing step 21.
例如,响应于通过执行步骤22获取到的视图分享指令,对如图7所示的手机屏幕显示的视图的内容所对应的数据进行获取;其中,获取的数据包括:获取如图7所示实线框区域内的第一内容所对应的数据,获取如图7所示虚线框区域内的第二内容所对应的数据。其中,如图7所示实线框区域内的第一内容包括:车次“Z45”、出发站“杭州”、到达站“黄石”、预计出发时间“11/26 23:04”、预计到达时间“11/26 23:09”、席次“14车05号中铺”、订单号“E275874163”、旅客姓名“曾先生”;如图7所示虚线框区域内的第二内容包括:“短信文本分享”以及“预计到达时间:11/26 23:09”。For example, in response to the view sharing instruction obtained by performing step 22, the data corresponding to the content of the view displayed on the mobile phone screen shown in FIG. 7 is acquired; wherein the acquired data includes: obtaining as shown in FIG. 7 The data corresponding to the first content in the wire frame area acquires data corresponding to the second content in the dotted frame area as shown in FIG. 7 . The first content in the solid line frame area shown in FIG. 7 includes: the train number “Z45”, the departure station “Hangzhou”, the arrival station “Yellowstone”, the estimated departure time “11/26 23:04”, and the estimated arrival time. "11/26 23:09", seats "14 cars No. 05 in the middle shop", order number "E275874163", passenger name "Mr. Zeng"; as shown in Figure 7, the second content in the dotted box area includes: "SMS text Share" and "Expected arrival time: 11/26 23:09".
步骤23,根据通过执行步骤22获取到的数据,生成待拼接的位图;Step 23: Generate a bitmap to be spliced according to the data obtained by performing step 22;
例如,假设通过执行步骤22,获取到如图7所示的第一内容所对应的数据,以及如图7所示的第二内容所对应的数据,并根据获取到的第一内容所对应的数据,分别生成如图8所示的第一位图,以及文字标题“火车票卡片”;根据获取到的第二内容所对应的数据,生成如图9所示的第二位图。同时获取该分享方应用界面背景所对应的数据,并根据获取到的该分享方应用界面背景所对应的数据,生成背景位图。 For example, it is assumed that by performing step 22, data corresponding to the first content as shown in FIG. 7 and data corresponding to the second content as shown in FIG. 7 are acquired, and corresponding to the acquired first content. Data, respectively, generates a first bitmap as shown in FIG. 8, and a text title "train ticket card"; and generates a second bitmap as shown in FIG. 9 according to the data corresponding to the acquired second content. At the same time, the data corresponding to the background of the sharing application interface is obtained, and the background bitmap is generated according to the obtained data corresponding to the background of the sharing application interface.
步骤24,通过加载图片布局工具cardlayout,对第一位图、第二位图、文字标题以及背景位图进行拼接,生成待调整的位图; Step 24, by loading a picture layout tool cardlayout, splicing the first bitmap, the second bitmap, the text title, and the background bitmap to generate a bitmap to be adjusted;
例如,所述分享方应用通过加载cardlayout,将第一位图、第二位图、文字标题以及背景位图设置到布局中,并通过cardlayout对所述布局中的第一位图、第二位图、文字标题以及背景位图进行拼接,生成待调整的位图。For example, the sharer application sets the first bitmap, the second bitmap, the text title, and the background bitmap to the layout by loading the cardlayout, and uses the cardlayout to map the first bitmap and the second digit in the layout. The graph, the text title, and the background bitmap are stitched together to generate a bitmap to be adjusted.
步骤25,根据位图调整参数值,对生成的待调整的位图进行调整,生成待分享的位图;Step 25: Adjust the parameter value according to the bitmap, and adjust the generated bitmap to be adjusted to generate a bitmap to be shared.
例如,假设根据用户自身需要设置位图调整参数为例,获取用户设置的位图宽度(Weight)、高度(Height),调用Bitmap中的createBitmap方法,根据获取到的位图宽度(Weight)以及位图高度(Height),调用画板工具Canvas,对待调整的位图进行调整,生成待分享的位图shareBitmap,该位图shareBitmap比如如图10所示。For example, suppose that the bitmap adjustment parameter is set according to the user's own needs, and the bitmap width (Weight) and height (Height) set by the user are obtained, and the createBitmap method in the Bitmap is called, according to the obtained bitmap width (Weight) and the bit. Height of the graph, call the canvas tool Canvas, adjust the bitmap to be adjusted, and generate the bitmap shareBitmap to be shared. The bitmap shareBitmap is shown in Figure 10.
步骤26,将所述待分享的位图保存在内存中,并获取所述待分享的位图的URI; Step 26, the bitmap to be shared is saved in the memory, and the URI of the bitmap to be shared is obtained;
将通过执行步骤25得到的待分享的位图,以指定格式保存到内存中,并生成所述待分享位图的URI。The bitmap to be shared obtained by performing step 25 is saved in the specified format in the memory, and the URI of the bitmap to be shared is generated.
例如,将通过执行步骤25得到的待分享的位图以jpg格式保存到内存文件memFile中,并采用反射技术获取内存文件句柄,进而从获取到的内存文件句柄中读取出所述待分享位图的URI。该URI比如可以是:For example, the bitmap to be shared obtained by performing step 25 is saved in the jpg format to the memory file memFile, and the memory file handle is obtained by using the reflection technology, and the to-be-shared bit is read from the obtained memory file handle. The URI of the graph. The URI can be, for example:
“shareUri=content://com.yunos.lifecard/share_cardimg/aa.jpg”"shareUri=content://com.yunos.lifecard/share_cardimg/aa.jpg"
其中,由于所述的反射技术的实现原理已经是一种比较成熟的现有技术,此处对该反射技术不再赘述。The implementation principle of the reflection technology is already a mature prior art, and the reflection technology will not be described herein.
步骤27,对所述获取的URI进行分享。In step 27, the acquired URI is shared.
具体地,可以将通过执行步骤26生成的URI设置到intent中,并发起调用社交平台的系统分享接口,将所述位图的统一资源标识符发送至社交平台。社交平台根据所述位图的统一资源标识符,获取所述位图并分享。同时社交平 台提供访问所述位图的统一资源标识符(shareUri)的接口。同时,利用反射方法执行内存文件的getFileDescriptor方法获取内存文件句柄,再调用ParcelFileDescriptor工具类的dup方法获得可返回给第三方应用使用的内存文件句柄,则第三方应用通过调用所述shareUri接口,可以获得根据该内存文件句柄获得所述位图的统一资源标识符,并根据所述位图的统一资源标识符,获得所述位图。Specifically, the URI generated by performing step 26 can be set into the intent, and a system sharing interface that invokes the social platform is initiated, and the uniform resource identifier of the bitmap is sent to the social platform. The social platform acquires the bitmap and shares according to the uniform resource identifier of the bitmap. Simultaneous social peace The station provides an interface to access the Uniform Resource Identifier (shareUri) of the bitmap. At the same time, using the reflection method to execute the getFileDescriptor method of the memory file to obtain the memory file handle, and then calling the dup method of the ParcelFileDescriptor tool class to obtain a memory file handle that can be returned to the third-party application, the third-party application can obtain the call by using the shareUri interface. Obtaining a uniform resource identifier of the bitmap according to the memory file handle, and obtaining the bitmap according to the uniform resource identifier of the bitmap.
需要说明的是,其中所述的接收方应用与分享方应用可以是同一终端上安装的应用,比如当同一部手机上安装的社交应用“来往”向社交应用“微信”进行分享时,将社交应用“微信”称为接收方应用;也可以是不同终端上安装的相同应用,比如可以是手机A上安装的社交应用“来往”向手机B上安装的社交应用“来往”进行分享时,将手机B上安装的社交应用“来往”称为接收方应用;还可以是不同终端上安装的不同应用,比如可以是手机A上安装的社交应用“来往”向手机B上安装的社交应用“微信”进行分享时,将手机B上安装的社交应用“微信”称为接收方应用。It should be noted that the receiver application and the sharer application may be applications installed on the same terminal, for example, when a social application installed on the same mobile phone “communicates” to the social application “WeChat” to share The application "WeChat" is called the receiver application; it can also be the same application installed on different terminals, for example, when the social application "communication" installed on the mobile phone A is shared with the social application "communication" installed on the mobile phone B, The social application "communication" installed on the mobile phone B is called a receiving application; it can also be a different application installed on different terminals, for example, a social application "communication" installed on the mobile phone A can be installed on the mobile phone B. "When sharing, the social application "WeChat" installed on the mobile phone B is referred to as a recipient application.
本申请实施例2提供的上述方法,由于可以根据获取到的视图的内容所对应的数据,生成位图,而所述视图,可以是根据以视图的方式展示的、非图片格式的文件的数据生成的,从而可以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。The foregoing method provided in Embodiment 2 of the present application may generate a bitmap according to data corresponding to the content of the obtained view, and the view may be data according to a file in a non-image format displayed in a view manner. The generated image can be used to share a non-image format file that can be displayed in a view.
实施例3Example 3
本申请实施例提供一种图片分享装置,用以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。该装置的具体结构示意图如图11所示,包括位图生成单元31以及位图分享单元32。The embodiment of the present application provides a picture sharing device, which is used to share a non-picture format file that can be displayed in a view in the form of a picture. A schematic structural diagram of the device is shown in FIG. 11, and includes a bitmap generating unit 31 and a bitmap sharing unit 32.
其中,位图生成单元31用于获取终端中的视图的内容所对应的数据,并根据所述数据生成位图;The bitmap generating unit 31 is configured to acquire data corresponding to the content of the view in the terminal, and generate a bitmap according to the data.
位图分享单元32,用于将所述位图保存在内存中,并生成所述位图的统一 资源标识符提供给其他终端。a bitmap sharing unit 32, configured to save the bitmap in a memory, and generate a uniformity of the bitmap The resource identifier is provided to other terminals.
在一种实施方式中,位图生成单元31,用于:按照预定的数据获取第一规则,获取终端中的视图的第一内容所对应的数据;根据获取的所述视图的第一内容所对应的数据生成位图。比如,位图生成单元31,可以用于:按照预定的数据获取第一规则,获取所述视图的标题所对应的数据以及所述视图的主体所对应的数据,作为视图的第一内容所对应的数据。In an embodiment, the bitmap generating unit 31 is configured to: acquire the first rule according to the predetermined data, and acquire data corresponding to the first content of the view in the terminal; according to the obtained first content of the view The corresponding data is generated as a bitmap. For example, the bitmap generating unit 31 may be configured to: acquire the first rule according to the predetermined data, acquire data corresponding to the title of the view, and data corresponding to the body of the view, corresponding to the first content of the view. The data.
在一种实施方式中,位图生成单元31,还可以用于:按照预定的数据获取第二规则,获取终端中的视图的第二内容所对应的数据;根据第一内容所对应的数据以及第二内容所对应的数据,生成位图。In an embodiment, the bitmap generating unit 31 is further configured to: acquire the second rule according to the predetermined data, and acquire data corresponding to the second content of the view in the terminal; according to the data corresponding to the first content and The data corresponding to the second content generates a bitmap.
在一种实施方式中,位图生成单元31按照预定的数据获取第二规则,获取终端中的视图的第二内容所对应的数据的过程可以包括:获取所述视图的类型信息;根据所述类型信息,确定数据获取需求;根据所述数据获取需求,获取与所述数据获取需求匹配的数据作为所述第二内容所对应的数据。In an embodiment, the process of acquiring the data corresponding to the second content of the view in the terminal by the bitmap generating unit 31 according to the predetermined data may include: acquiring the type information of the view; The type information is used to determine a data acquisition requirement. According to the data acquisition requirement, data that matches the data acquisition requirement is obtained as data corresponding to the second content.
在一种实施方式中,位图生成单元31,还用于:获取所述视图的标题所对应的数据;获取所述视图的主体所对应的数据。In an embodiment, the bitmap generating unit 31 is further configured to: acquire data corresponding to the title of the view; and acquire data corresponding to the body of the view.
在一种实施方式中,位图生成单元31,用于:根据获取到的所述视图的标题所对应的数据,生成出所述视图的文字标题;根据获取到的所述视图的主体所对应的数据,生成第一位图;根据获取到的与所述获取需求匹配的数据,生成第二位图;通过将所述第一位图、第二位图以及所述文字标题进行拼接,生成所述位图;或根据获取到的所述视图的主体所对应的数据、与所述获取需求匹配的数据以及所述视图的标题所对应的数据,直接生成所述位图。In an embodiment, the bitmap generating unit 31 is configured to: generate a text title of the view according to the acquired data corresponding to the title of the view; according to the obtained body of the view Data, generating a first bitmap; generating a second bitmap according to the acquired data matching the acquisition requirement; generating the second bitmap, the second bitmap, and the text header by splicing And the bitmap is directly generated according to the data corresponding to the acquired body of the view, the data matching the acquisition requirement, and the data corresponding to the title of the view.
在一种实施方式中,位图生成单元31用于:将所述第一位图、第二位图以及所述文字标题进行拼接,生成待调整位图;根据位图调整参数值,调整所述待调整位图,生成所述位图。In an embodiment, the bitmap generating unit 31 is configured to: splicing the first bitmap, the second bitmap, and the text header to generate a bitmap to be adjusted; adjusting the parameter value according to the bitmap, and adjusting the location The bitmap is adjusted to generate the bitmap.
在一种实施方式中,所述位图调整参数值,包括:用户设置的位图高度值、位图宽度值以及像素密度值;或移动端设备屏幕的高度值、宽度值以及屏幕的 像素密度值。In an embodiment, the bitmap adjustment parameter value includes: a bitmap height value set by a user, a bitmap width value, and a pixel density value; or a height value, a width value, and a screen of the mobile device device screen. Pixel density value.
在一种实施方式中,位图生成单元31用于:通过将所述第一位图、第二位图、所述文字标题以及获取到的背景位图进行拼接,生成所述位图。In an embodiment, the bitmap generating unit 31 is configured to generate the bitmap by splicing the first bitmap, the second bitmap, the text title, and the acquired background bitmap.
在一种实施方式中,位图生成单元31还用于:将所述第一位图、第二位图、所述文字标题以及获取到的背景位图进行拼接,生成所述位图之前,获取所述视图的背景所对应的数据,根据获取到的所述视图的背景所对应的数据,生成所述背景位图;或,获取指定的视图所对应的数据,并根据所述指定的视图所对应的数据,生成所述背景位图。In an embodiment, the bitmap generating unit 31 is further configured to: splicing the first bitmap, the second bitmap, the text title, and the acquired background bitmap to generate the bitmap, Acquiring the data corresponding to the background of the view, generating the background bitmap according to the data corresponding to the background of the obtained view; or acquiring data corresponding to the specified view, and according to the specified view The corresponding bitmap data is generated by the corresponding data.
在一种实施方式中,位图分享单元32用于:将所述位图保存为指定格式的内存文件。In one embodiment, the bitmap sharing unit 32 is configured to save the bitmap as a memory file of a specified format.
在一种实施方式中,生成所述位图的统一资源标识符后,所述装置还包括:系统接口调用单元,用于:通过发起调用社交平台的系统分享接口,将所述位图的统一资源标识符发送至社交平台,以使得社交平台执行下述操作:社交平台根据所述位图的统一资源标识符,获取所述位图,并提供访问所述位图的统一资源标识符接口,以使得第三方应用通过调用所述位图的统一资源标识符接口,获得所述位图。In an embodiment, after generating the uniform resource identifier of the bitmap, the apparatus further includes: a system interface calling unit, configured to: unify the bitmap by initiating a system sharing interface that invokes the social platform The resource identifier is sent to the social platform such that the social platform performs the following operations: the social platform acquires the bitmap according to the uniform resource identifier of the bitmap, and provides a uniform resource identifier interface that accesses the bitmap, The bitmap is obtained in such a way that the third party application invokes the Uniform Resource Identifier interface of the bitmap.
采用本申请实施例3提供的上述装置,由于可以根据获取到的视图的内容所对应的数据,生成位图,而所述视图,可以是根据以视图的方式展示的、非图片格式的文件的数据生成的,从而可以实现以图片的形式,分享能够以视图的方式展示的、非图片格式的文件。According to the foregoing apparatus provided in Embodiment 3 of the present application, the bitmap may be generated according to the data corresponding to the content of the obtained view, and the view may be based on a non-image format file displayed in a view manner. The data is generated so that a file in a non-image format that can be displayed in a view can be shared in the form of a picture.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产 品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is directed to a method, apparatus (system), and computer program according to an embodiment of the present invention. The flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁 磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cassette Disk storage or other magnetic storage devices or any other non-transportable media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。 The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (24)

  1. 一种图片分享方法,其特征在于,包括:A picture sharing method, comprising:
    获取终端中的视图的内容所对应的数据,并根据所述数据生成位图;Obtaining data corresponding to the content of the view in the terminal, and generating a bitmap according to the data;
    将所述位图保存在内存中,并生成所述位图的统一资源标识符。The bitmap is saved in memory and a uniform resource identifier of the bitmap is generated.
  2. 如权利要求1所述的方法,其特征在于,获取终端中的视图的内容所对应的数据,并根据所述数据生成位图,包括:The method of claim 1, wherein the data corresponding to the content of the view in the terminal is acquired, and the bitmap is generated according to the data, including:
    按照预定的数据获取第一规则,获取终端中的视图的第一内容所对应的数据;Acquiring the first rule according to the predetermined data, and acquiring data corresponding to the first content of the view in the terminal;
    根据获取的所述视图的第一内容所对应的数据生成位图。Generating a bitmap according to the data corresponding to the obtained first content of the view.
  3. 如权利要求2所述的方法,其特征在于,获取终端中的视图的内容所对应的数据,还包括:The method of claim 2, wherein the obtaining data corresponding to the content of the view in the terminal further comprises:
    按照预定的数据获取第二规则,获取终端中的视图的第二内容所对应的数据;则Acquiring the second rule according to the predetermined data, and acquiring data corresponding to the second content of the view in the terminal;
    根据所述数据生成位图,包括:Generating a bitmap based on the data, including:
    根据第一内容所对应的数据以及第二内容所对应的数据,生成位图。A bitmap is generated according to the data corresponding to the first content and the data corresponding to the second content.
  4. 如权利要求3所述的方法,其特征在于,按照预定的数据获取第二规则,获取终端中的视图的第二内容所对应的数据,包括:The method of claim 3, wherein acquiring the second rule according to the predetermined data and acquiring the data corresponding to the second content of the view in the terminal comprises:
    获取所述视图的类型信息;Obtaining type information of the view;
    根据所述类型信息,确定数据获取需求;Determining a data acquisition requirement according to the type information;
    根据所述数据获取需求,获取与所述数据获取需求匹配的数据。Acquiring data matching the data acquisition requirement according to the data acquisition requirement.
  5. 如权利要求2或3或4所述的方法,其特征在于,按照预定的数据获取第一规则,获取终端中的视图的第一内容所对应的数据,包括:The method according to claim 2 or 3 or 4, wherein the acquiring the first rule according to the predetermined data, and acquiring the data corresponding to the first content of the view in the terminal comprises:
    按照预定的数据获取第一规则,获取所述视图的标题所对应的数据以及所述视图的主体所对应的数据。Acquiring the first rule according to the predetermined data, and acquiring data corresponding to the title of the view and data corresponding to the body of the view.
  6. 如权利要求5所述的方法,其特征在于,根据第一内容所对应的数据以及第二内容所对应的数据,生成位图,包括: The method according to claim 5, wherein the generating the bitmap according to the data corresponding to the first content and the data corresponding to the second content comprises:
    根据获取到的所述视图的标题所对应的数据,生成文字标题;根据获取到的所述视图的主体所对应的数据,生成第一位图;根据获取到的与所述获取需求匹配的数据,生成第二位图;通过将所述第一位图、第二位图以及所述文字标题进行拼接,生成所述位图;或Generating a text title according to the data corresponding to the obtained title of the view; generating a first bitmap according to the acquired data corresponding to the body of the view; and according to the acquired data matching the obtaining requirement Generating a second bitmap; generating the bitmap by splicing the first bitmap, the second bitmap, and the text header; or
    根据获取到的所述视图的主体所对应的数据、与所述获取需求匹配的数据以及所述视图的标题所对应的数据,直接生成所述位图。And generating the bitmap directly according to the data corresponding to the obtained body of the view, the data matching the acquisition requirement, and the data corresponding to the title of the view.
  7. 如权利要求6所述的方法,其特征在于,将所述第一位图、第二位图以及所述文字标题进行拼接,生成所述位图,包括:The method of claim 6, wherein the first bitmap, the second bitmap, and the text header are spliced to generate the bitmap, including:
    将所述第一位图、第二位图以及所述文字标题进行拼接,生成待调整位图;Splicing the first bitmap, the second bitmap, and the text header to generate a bitmap to be adjusted;
    根据位图调整参数值调整所述待调整位图,生成所述位图。The bitmap to be adjusted is adjusted according to the bitmap adjustment parameter value, and the bitmap is generated.
  8. 如权利要求7所述的方法,其特征在于,所述位图调整参数值,包括:The method of claim 7 wherein said bitmap adjusting parameter values comprises:
    设置的位图高度值、位图宽度值以及像素密度值;或Set the bitmap height value, bitmap width value, and pixel density value; or
    移动端设备屏幕的高度值、宽度值以及屏幕的像素密度值。The height value, width value, and pixel density value of the screen of the mobile device device.
  9. 如权利要求7所述的方法,其特征在于,通过将所述第一位图、第二位图以及所述文字标题进行拼接,生成所述位图,包括:The method according to claim 7, wherein the bitmap is generated by splicing the first bitmap, the second bitmap, and the text header, including:
    通过将所述第一位图、第二位图、所述文字标题以及获取到的背景位图进行拼接,生成所述位图。The bitmap is generated by splicing the first bitmap, the second bitmap, the text title, and the acquired background bitmap.
  10. 如权利要求9所述的方法,其特征在于,通过将所述第一位图、第二位图、所述文字标题以及获取到的背景位图进行拼接,生成所述位图之前,所述方法还包括:The method according to claim 9, wherein said tiling is performed by splicing said first bitmap, said second bitmap, said text title, and said acquired background bitmap, said The method also includes:
    获取所述视图的背景所对应的数据,并根据获取到的所述视图的背景所对应的数据,生成所述背景位图;或Obtaining data corresponding to the background of the view, and generating the background bitmap according to the data corresponding to the background of the obtained view; or
    获取指定的视图所对应的数据,并根据所述指定的视图所对应的数据,生成所述背景位图。Obtaining data corresponding to the specified view, and generating the background bitmap according to the data corresponding to the specified view.
  11. 如权利要求1所述的方法,其特征在于,将所述位图保存在内存中,包括: The method of claim 1 wherein storing the bitmap in memory comprises:
    将所述位图保存为指定格式的内存文件。Save the bitmap as a memory file of the specified format.
  12. 如权利要求1所述的方法,其特征在于,生成所述位图的统一资源标识符后,还包括:The method according to claim 1, wherein after generating the uniform resource identifier of the bitmap, the method further comprises:
    通过发起调用社交平台的系统分享接口,将所述位图的统一资源标识符发送至社交平台,以使得社交平台执行下述操作:Sending the uniform resource identifier of the bitmap to the social platform by initiating a system sharing interface that invokes the social platform, so that the social platform performs the following operations:
    社交平台根据所述位图的统一资源标识符,获取所述位图,并提供访问所述位图的统一资源标识符接口,以使得第三方应用通过调用所述位图的统一资源标识符接口,获得所述位图。The social platform obtains the bitmap according to the uniform resource identifier of the bitmap, and provides a uniform resource identifier interface for accessing the bitmap, so that the third party application invokes the uniform resource identifier interface of the bitmap , obtaining the bitmap.
  13. 一种图片分享装置,其特征在于,包括:A picture sharing device, comprising:
    位图生成单元,用于获取终端中的视图的内容所对应的数据,并根据所述数据生成位图;a bitmap generating unit, configured to acquire data corresponding to content of the view in the terminal, and generate a bitmap according to the data;
    位图分享单元,用于将所述位图保存在内存中,并生成所述位图的统一资源标识符提供给其他终端。a bitmap sharing unit, configured to save the bitmap in a memory, and generate a uniform resource identifier of the bitmap to provide to other terminals.
  14. 如权利要求13所述的装置,其特征在于,位图生成单元,用于:The apparatus according to claim 13, wherein the bitmap generating unit is configured to:
    按照预定的数据获取第一规则,获取终端中的视图的第一内容所对应的数据;Acquiring the first rule according to the predetermined data, and acquiring data corresponding to the first content of the view in the terminal;
    根据获取的所述视图的第一内容所对应的数据生成位图。Generating a bitmap according to the data corresponding to the obtained first content of the view.
  15. 如权利要求14所述的装置,其特征在于,位图生成单元,还用于:The device according to claim 14, wherein the bitmap generating unit is further configured to:
    按照预定的数据获取第二规则,获取终端中的视图的第二内容所对应的数据;则Acquiring the second rule according to the predetermined data, and acquiring data corresponding to the second content of the view in the terminal;
    位图生成单元,具体用于根据第一内容所对应的数据以及第二内容所对应的数据,生成位图。The bitmap generating unit is configured to generate a bitmap according to the data corresponding to the first content and the data corresponding to the second content.
  16. 如权利要求15所述的装置,其特征在于,位图生成单元,用于:The apparatus according to claim 15, wherein the bitmap generating unit is configured to:
    获取所述视图的类型信息;Obtaining type information of the view;
    根据所述类型信息,确定数据获取需求;Determining a data acquisition requirement according to the type information;
    根据所述数据获取需求,获取与所述数据获取需求匹配的数据。 Acquiring data matching the data acquisition requirement according to the data acquisition requirement.
  17. 如权利要求14或15或16所述的装置,其特征在于,位图生成单元,用于:The apparatus according to claim 14 or 15 or 16, wherein the bitmap generating unit is configured to:
    按照预定的数据获取第一规则,获取所述视图的标题所对应的数据以及所述视图的主体所对应的数据。Acquiring the first rule according to the predetermined data, and acquiring data corresponding to the title of the view and data corresponding to the body of the view.
  18. 如权利要求17所述的装置,其特征在于,位图生成单元,用于:The apparatus according to claim 17, wherein the bitmap generating unit is configured to:
    根据获取到的所述视图的标题所对应的数据,生成所述视图的文字标题;根据获取到的所述视图的主体所对应的数据,生成第一位图;根据获取到的与所述获取需求匹配的数据,生成第二位图;通过将所述第一位图、第二位图以及所述文字标题进行拼接,生成所述位图;或Generating a text title of the view according to the obtained data corresponding to the title of the view; generating a first bitmap according to the acquired data corresponding to the body of the view; and obtaining according to the obtained and the obtained Generating a second bitmap by splicing the first bitmap, the second bitmap, and the text header to generate the bitmap; or
    根据获取到的所述视图的主体所对应的数据、与所述获取需求匹配的数据以及所述视图的标题所对应的数据,直接生成所述位图。And generating the bitmap directly according to the data corresponding to the obtained body of the view, the data matching the acquisition requirement, and the data corresponding to the title of the view.
  19. 如权利要求18所述的装置,其特征在于,位图生成单元,用于:The apparatus according to claim 18, wherein the bitmap generating unit is configured to:
    将所述第一位图、第二位图以及所述文字标题进行拼接,生成待调整位图;Splicing the first bitmap, the second bitmap, and the text header to generate a bitmap to be adjusted;
    根据位图调整参数值,调整所述待调整位图,生成所述位图。Adjusting the parameter value according to the bitmap, adjusting the bitmap to be adjusted, and generating the bitmap.
  20. 如权利要求19所述的装置,其特征在于,所述位图调整参数值,包括:The apparatus according to claim 19, wherein said bitmap adjustment parameter value comprises:
    用户设置的位图高度值、位图宽度值以及像素密度值;或User-set bitmap height value, bitmap width value, and pixel density value; or
    移动端设备屏幕的高度值、宽度值以及屏幕的像素密度值。The height value, width value, and pixel density value of the screen of the mobile device device.
  21. 如权利要求19所述的装置,其特征在于,位图生成单元,用于:The apparatus according to claim 19, wherein the bitmap generating unit is configured to:
    通过将所述第一位图、第二位图、所述文字标题以及获取到的背景位图进行拼接,生成所述位图。The bitmap is generated by splicing the first bitmap, the second bitmap, the text title, and the acquired background bitmap.
  22. 如权利要求21所述的装置,其特征在于,位图生成单元,还用于:The device according to claim 21, wherein the bitmap generating unit is further configured to:
    将所述第一位图、第二位图、所述文字标题以及获取到的背景位图进行拼接,生成所述位图之前,获取所述视图的背景所对应的数据,根据获取到的所述视图的背景所对应的数据,生成所述背景位图;或Splicing the first bitmap, the second bitmap, the text title, and the acquired background bitmap, and acquiring data corresponding to the background of the view before generating the bitmap, according to the obtained location Generating the background bitmap according to data corresponding to the background of the view; or
    获取指定的视图所对应的数据,并根据所述指定的视图所对应的数据,生 成所述背景位图。Obtaining data corresponding to the specified view, and generating data according to the data corresponding to the specified view Into the background bitmap.
  23. 如权利要求13所述的装置,其特征在于,位图分享单元,用于:The device according to claim 13, wherein the bitmap sharing unit is configured to:
    将所述位图保存为指定格式的内存文件。Save the bitmap as a memory file of the specified format.
  24. 如权利要求13所述的装置,其特征在于,所述装置还包括:The device of claim 13 wherein said device further comprises:
    系统接口调用单元,用于:System interface call unit for:
    在位图分享单元生成所述位图的统一资源标识符后,通过发起调用社交平台的系统分享接口,将所述位图的统一资源标识符发送至社交平台,以使得社交平台执行下述操作:After the bitmap sharing unit generates the uniform resource identifier of the bitmap, the unified resource identifier of the bitmap is sent to the social platform by initiating a system sharing interface that invokes the social platform, so that the social platform performs the following operations. :
    社交平台根据所述位图的统一资源标识符,获取所述位图,并提供访问所述位图的统一资源标识符接口,以使得第三方应用通过调用所述位图的统一资源标识符接口,获得所述位图。 The social platform obtains the bitmap according to the uniform resource identifier of the bitmap, and provides a uniform resource identifier interface for accessing the bitmap, so that the third party application invokes the uniform resource identifier interface of the bitmap , obtaining the bitmap.
PCT/CN2016/098956 2015-09-22 2016-09-14 Picture sharing method and device WO2017050161A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510609545.7A CN106547792B (en) 2015-09-22 2015-09-22 Picture sharing method and device
CN201510609545.7 2015-09-22

Publications (1)

Publication Number Publication Date
WO2017050161A1 true WO2017050161A1 (en) 2017-03-30

Family

ID=58365473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/098956 WO2017050161A1 (en) 2015-09-22 2016-09-14 Picture sharing method and device

Country Status (2)

Country Link
CN (1) CN106547792B (en)
WO (1) WO2017050161A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932455A (en) * 2020-07-30 2020-11-13 深圳市富途网络科技有限公司 Information sharing method and related product
CN113132215A (en) * 2021-03-31 2021-07-16 联想(北京)有限公司 Processing method, processing device, electronic equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107992465A (en) * 2017-12-13 2018-05-04 广州阿里巴巴文学信息技术有限公司 The method, apparatus and terminal device that a kind of reading content is shared

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808182A (en) * 2010-02-05 2010-08-18 腾讯科技(深圳)有限公司 Method, terminal and system for uploading pictures
CN102799383A (en) * 2012-07-18 2012-11-28 腾讯科技(深圳)有限公司 Screen sectional drawing method and screen sectional drawing device for mobile terminals
CN103269362A (en) * 2013-05-07 2013-08-28 百度在线网络技术(北京)有限公司 Method, system and device for sharing localized content of picture in webpage
CN104793870A (en) * 2014-01-22 2015-07-22 阿里巴巴集团控股有限公司 Data sharing method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185924A (en) * 2011-05-16 2011-09-14 北京奇艺世纪科技有限公司 Method and equipment for sharing video screenshot
TWI479866B (en) * 2012-05-15 2015-04-01 Awind Inc Sender device and method of sharing screenshot and computer readable medium thereof
CN102857885A (en) * 2012-08-17 2013-01-02 东莞宇龙通信科技有限公司 Method and communication terminal for sharing information
CN102855059B (en) * 2012-08-21 2015-04-08 东莞宇龙通信科技有限公司 Terminal and information sharing method
CN102930263A (en) * 2012-09-27 2013-02-13 百度国际科技(深圳)有限公司 Information processing method and device
CN102968274A (en) * 2012-11-22 2013-03-13 广东欧珀移动通信有限公司 Free screen capturing method and free screen capturing system in mobile device
CN104035929B (en) * 2013-03-04 2018-07-06 腾讯科技(深圳)有限公司 Webpage capture method and apparatus
CN104281356B (en) * 2013-07-01 2018-09-28 腾讯科技(深圳)有限公司 screen sharing method and device
CN103841267B (en) * 2014-03-17 2016-10-19 广州市久邦数码科技有限公司 A kind of note screenshot method and system
CN104346075B (en) * 2014-11-07 2018-03-06 北京奇虎科技有限公司 Carry out the method and client of sectional drawing processing
CN104486430A (en) * 2014-12-18 2015-04-01 北京奇虎科技有限公司 Method, device and client for realizing data sharing in mobile browser client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808182A (en) * 2010-02-05 2010-08-18 腾讯科技(深圳)有限公司 Method, terminal and system for uploading pictures
CN102799383A (en) * 2012-07-18 2012-11-28 腾讯科技(深圳)有限公司 Screen sectional drawing method and screen sectional drawing device for mobile terminals
CN103269362A (en) * 2013-05-07 2013-08-28 百度在线网络技术(北京)有限公司 Method, system and device for sharing localized content of picture in webpage
CN104793870A (en) * 2014-01-22 2015-07-22 阿里巴巴集团控股有限公司 Data sharing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932455A (en) * 2020-07-30 2020-11-13 深圳市富途网络科技有限公司 Information sharing method and related product
CN113132215A (en) * 2021-03-31 2021-07-16 联想(北京)有限公司 Processing method, processing device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN106547792B (en) 2020-08-25
CN106547792A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
US11503039B2 (en) Personal cloud device for digital media
US11580063B2 (en) Apparatus for securing storage space and method thereof
US20160127653A1 (en) Electronic Device and Method for Providing Filter in Electronic Device
US8763153B2 (en) Presenting messages associated with locations
CN105991682B (en) Data sharing method and device
JP6215359B2 (en) Providing access to information across multiple computing devices
JP6775510B2 (en) Terminals, terminal control methods, and programs
WO2015085507A1 (en) Data storage method, data processing method and device, and mobile terminal
US11379836B2 (en) Methods and systems for recording data based on plurality of blockchain networks
WO2016066147A2 (en) Method and device for processing image
US11500861B2 (en) Methods and systems for recording data based on plurality of blockchain networks
WO2017050161A1 (en) Picture sharing method and device
KR20190058466A (en) Method and system for accessing third party services within an application
US11468613B2 (en) Annotating an image with a texture fill
WO2019011141A1 (en) Startup and configuration method, apparatus and device, medium, and operating system
WO2021073454A1 (en) Method and apparatus for viewing media file
US10467279B2 (en) Selecting digital content for inclusion in media presentations
CN106022010A (en) File display method and device
CN108459910A (en) A kind of method and apparatus for deleting resource
US20130073688A1 (en) Thread mechanism for media and metadata upload
CN111435936B (en) Cloud host creation method, cloud host creation device, server and computer readable storage medium
US20210334057A1 (en) Display system and display device
TW201828246A (en) Method and device for sharing pictures which shares a file that is not in a picture format and capable of being displayed as a view
US8964063B2 (en) Camera resolution modification based on intended printing location
CN116628666A (en) Interaction method, interaction device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16848043

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16848043

Country of ref document: EP

Kind code of ref document: A1