The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of picture pixels side
Case, by creating the block of pixels in image or carrying out transparence value adjustment to pixel, improves terminal
The pixelation of built-in picture, simplifies operating procedure, improves the usage experience of user.
To achieve these goals, embodiment according to the first aspect of the invention, it is proposed that Yi Zhongtu
Piece pixelation method, including:Pixelation is carried out to the image for treating pixelation being locally stored obtaining
After instruction, it is determined that the pixel information in treating the image of pixelation;Treat every in the image of pixelation
Individual pixel performs pixelation step, and pixelation step includes:Each picture is determined according to pixel information
The color-values and transparence value of vegetarian refreshments;Create the block of pixels of each pixel, the pixel root of block of pixels
Set according to the color-values and transparence value of each pixel, wherein, the resolution ratio of block of pixels is N
× N, N are the integer more than or equal to 2;Detecting whole pixels in treating the image of pixelation
Point is completed after pixelation step, by the image scaling Jing Guo pixelation step process to 1/N, to complete
Treat the pixelation process of the image of pixelation.
In the technical scheme, by creating block of pixels in the image for treat pixelation, picture will be also treated
Original image vegetarian refreshments in the image of elementization is expanded as the block of pixels of N × N number of pixel as center,
And block of pixels is set according to the color-values of original image vegetarian refreshments and transparence value, equivalent to adding N2-1
Individual pixel, and after block of pixels establishment is completed, zoomed image to 1/N, to ensure after pixelation
The size of image is constant.
In the above-mentioned technical solutions, it is preferred that create the block of pixels of each pixel, the picture of block of pixels
Vegetarian refreshments is set according to the color-values and transparence value of each pixel, including step in detail below:
When it is determined that N is the odd number more than or equal to 2, it is determined that being used as the center of block of pixels using each pixel
Pixel;To color of other pixels in block of pixels in addition to central pixel point according to each pixel
Color value and transparence value are set.
In the technical scheme, by when it is determined that N is the odd number more than or equal to 2, to block of pixels
In other pixels in addition to central pixel point entered according to the color-values and transparence value of each pixel
Row setting, it is ensured that block of pixels creates the reliability and efficiency of process.
A kind of embodiment according to the second aspect of the invention, it is also proposed that picture pixels method, bag
Include:To being locally stored after the image of pixelation is pre-processed, it is determined that treating the image of pixelation
In pixel information;It is determined that in treating the image of pixelation at intervals of M pixel row pixel
With row pixel, wherein, M is integer more than or equal to 2;By row pixel and row pixel
Transparence value is adjusted to default transparence value, with the pixelation process for the image for completing to treat pixelation.
In the technical scheme, by the way that the transparence value of row pixel and row pixel is adjusted to default
Transparence value, simplifies operating procedure, improves the usage experience of user.
In the above-mentioned technical solutions, it is preferred that also include:To the image for treating pixelation being locally stored
Fuzzy processing is carried out, with the pretreatment for the image for completing to treat pixelation.
In the technical scheme, by being carried out to the image for treating pixelation being locally stored at obfuscation
Reason, reduces the details for the image for treating pixelation, to improve pixelation effect.
In the above-mentioned technical solutions, it is preferred that Fuzzy processing includes Gaussian Blur and handles and/or roll up
Product Fuzzy Processing.
A kind of embodiment according to the third aspect of the invention we, it is also proposed that picture pixels system, bag
Include:Determining unit, for obtaining the finger that pixelation is carried out to the image for treating pixelation being locally stored
After order, it is determined that the pixel information in treating the image of pixelation;Pixelated cell, for treating pixel
Each pixel in the image of change performs pixelation step;Determining unit is additionally operable to:According to pixel
Information determines the color-values and transparence value of each pixel;Picture pixels system also includes:Create
Unit, the block of pixels for creating each pixel, the pixel of block of pixels is according to each pixel
Color-values and transparence value are set, wherein, the resolution ratio of block of pixels is N × N, N be more than
Or the integer equal to 2;Unit for scaling, for detecting whole pixels in treating the image of pixelation
Point is completed after pixelation step, by the image scaling Jing Guo pixelation step process to 1/N, to complete
Treat the pixelation process of the image of pixelation.
In the technical scheme, by creating block of pixels in the image for treat pixelation, picture will be also treated
Original image vegetarian refreshments in the image of elementization is expanded as the block of pixels of N × N number of pixel as center,
And block of pixels is set according to the color-values of original image vegetarian refreshments and transparence value, equivalent to adding N2-1
Individual pixel, and after block of pixels establishment is completed, zoomed image to 1/N, to ensure after pixelation
The size of image is constant.
In the above-mentioned technical solutions, it is preferred that determining unit is additionally operable to:It is determined that N is to be more than or wait
When 2 odd number, it is determined that being used as the central pixel point of block of pixels using each pixel;Creating unit is also
For:To color of other pixels in block of pixels in addition to central pixel point according to each pixel
Value and transparence value are set.
In the technical scheme, by when it is determined that N is the odd number more than or equal to 2, to block of pixels
In other pixels in addition to central pixel point entered according to the color-values and transparence value of each pixel
Row setting, it is ensured that block of pixels creates the reliability and efficiency of process.
A kind of embodiment according to the fourth aspect of the invention, it is also proposed that picture pixels system, bag
Include:Determining unit, for being locally stored after the image of pixelation is pre-processed, it is determined that
Treat the pixel information in the image of pixelation;Determining unit is additionally operable to:It is determined that treating the image of pixelation
In at intervals of M pixel row pixel and row pixel, wherein, M be more than or equal to 2
Integer;Picture pixels system also includes:Adjustment unit, for by row pixel and row pixel
Transparence value adjust to default transparence value, with complete treat pixelation image pixelation process.
In the technical scheme, by the way that the transparence value of row pixel and row pixel is adjusted to default
Transparence value, simplifies operating procedure, improves the usage experience of user.
In the above-mentioned technical solutions, it is preferred that also include:Pretreatment unit, for being locally stored
Treat pixelation image carry out Fuzzy processing, with complete treat pixelation image pretreatment.
In the technical scheme, by being carried out to the image for treating pixelation being locally stored at obfuscation
Reason, reduces the details for the image for treating pixelation, to improve pixelation effect.
In the above-mentioned technical solutions, it is preferred that Fuzzy processing includes Gaussian Blur and handles and/or roll up
Product Fuzzy Processing.
By above technical scheme, by creating the block of pixels in image or carrying out transparency to pixel
Value adjustment, improves the pixelation of terminal built-in picture, simplifies operating procedure, improve user's
Usage experience.
Embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, with reference to attached
The present invention is further described in detail for figure and embodiment.It should be noted that not
In the case of conflict, the feature in embodiments herein and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still,
The present invention can also be different from other modes described here to implement using other, therefore, the present invention
Protection domain do not limited by following public specific embodiment.
Fig. 1 shows the schematic flow diagram of picture pixels method according to an embodiment of the invention.
As shown in figure 1, picture pixels method according to an embodiment of the invention, including:Step
102, obtaining to being locally stored after after the instruction of the image progress pixelation of pixelation, it is determined that treating
Pixel information in the image of pixelation;Step 104, each picture in the image of pixelation is treated
Vegetarian refreshments performs pixelation step, and pixelation step 104 includes:Step 106, according to pixel information
It is determined that the color-values and transparence value of each pixel;Step 108, the pixel of each pixel is created
Block, the pixel of block of pixels is set according to the color-values and transparence value of each pixel, its
In, the resolution ratio of block of pixels is N × N, and N is the integer more than or equal to 2;Step 110, exist
Detect after whole pixels in the image of pixelation complete pixelation step, pixelation will be passed through
The image scaling of step process is to 1/N, with the pixelation process for the image for completing to treat pixelation.
In the technical scheme, by creating block of pixels in the image for treat pixelation, picture will be also treated
Original image vegetarian refreshments in the image of elementization is expanded as the block of pixels of N × N number of pixel as center,
And block of pixels is set according to the color-values of original image vegetarian refreshments and transparence value, equivalent to adding N2-1
Individual pixel, and after block of pixels establishment is completed, zoomed image to 1/N, to ensure after pixelation
The size of image is constant.
As shown in figure 5, in default N=3, the ARGB values (Alpha- of original image vegetarian refreshments 2
Red-Green-Blue it is) (128,128,128,128), then sets other pixels 1 in block of pixels
ARGB values (Alpha-Red-Green-Blue) be (128,128,128,128), and create
After pixel block end, the image scaling that pixelation is handled to 1/3, to ensure the size of image not
Become.
In the above-mentioned technical solutions, it is preferred that create the block of pixels of each pixel, the picture of block of pixels
Vegetarian refreshments is set according to the color-values and transparence value of each pixel, including step in detail below:
When it is determined that N is the odd number more than or equal to 2, it is determined that being used as the center of block of pixels using each pixel
Pixel;To color of other pixels in block of pixels in addition to central pixel point according to each pixel
Color value and transparence value are set.
In the technical scheme, by when it is determined that N is the odd number more than or equal to 2, to block of pixels
In other pixels in addition to central pixel point entered according to the color-values and transparence value of each pixel
Row setting, it is ensured that block of pixels creates the reliability and efficiency of process.
Fig. 2 shows the exemplary flow of picture pixels method according to another embodiment of the invention
Figure.
As shown in Fig. 2 picture pixels method according to another embodiment of the invention, including:
Step 202, to being locally stored after the image of pixelation is pre-processed, it is determined that treating pixelation
Image in pixel information;Step 204, it is determined that at intervals of M picture in treating the image of pixelation
The row pixel and row pixel of vegetarian refreshments, wherein, M is the integer more than or equal to 2;Step
206, the transparence value of row pixel and row pixel is adjusted to default transparence value, to complete to treat
The pixelation process of the image of pixelation.
In the technical scheme, by the way that the transparence value of row pixel and row pixel is adjusted to default
Transparence value, simplifies operating procedure, improves the usage experience of user.
As shown in fig. 6, when M is 3, adjacent row pixel at intervals of 3 pixels, it is adjacent
Row pixel at intervals of 3 pixels, retain pixel 4, and transparent is set to pixel 3
In vain, to realize the pixelation process of image.
In the above-mentioned technical solutions, it is preferred that also include:To the image for treating pixelation being locally stored
Fuzzy processing is carried out, with the pretreatment for the image for completing to treat pixelation.
In the technical scheme, by being carried out to the image for treating pixelation being locally stored at obfuscation
Reason, reduces the details for the image for treating pixelation, to improve pixelation effect.
In the above-mentioned technical solutions, it is preferred that Fuzzy processing includes Gaussian Blur and handles and/or roll up
Product Fuzzy Processing.
Fig. 3 shows the schematic block diagram of picture pixels system according to an embodiment of the invention.
As shown in figure 3, picture pixels system 300 according to an embodiment of the invention, bag
Include:Determining unit 302, for obtaining the image for the treating pixelation progress pixelation to being locally stored
Instruction after, it is determined that the pixel information in treating the image of pixelation;Pixelated cell 304, is used for
The each pixel treated in the image of pixelation performs pixelation step;Determining unit 302 is also used
In:The color-values and transparence value of each pixel are determined according to pixel information;Picture pixels system
System 300 also includes:Creating unit 306, the block of pixels for creating each pixel, block of pixels
Pixel is set according to the color-values and transparence value of each pixel, wherein, point of block of pixels
Resolution is N × N, and N is the integer more than or equal to 2;Unit for scaling 308, for detecting
, will be by pixelation step after whole pixels in the image of pixelation complete pixelation step
The image scaling of reason is to 1/N, with the pixelation process for the image for completing to treat pixelation.
In the technical scheme, by creating block of pixels in the image for treat pixelation, picture will be also treated
Original image vegetarian refreshments in the image of elementization is expanded as the block of pixels of N × N number of pixel as center,
And block of pixels is set according to the color-values of original image vegetarian refreshments and transparence value, equivalent to adding N2-1
Individual pixel, and after block of pixels establishment is completed, zoomed image to 1/N, to ensure after pixelation
The size of image is constant.
As shown in figure 5, in default N=3, the ARGB values (Alpha- of original image vegetarian refreshments 2
Red-Green-Blue it is) (128,128,128,128), then sets other pixels 1 in block of pixels
ARGB values (Alpha-Red-Green-Blue) be (128,128,128,128), and create
After pixel block end, the image scaling that pixelation is handled to 1/3, to ensure the size of image not
Become.
In the above-mentioned technical solutions, it is preferred that determining unit 302 is additionally operable to:It is determined that N be more than
Or during odd number equal to 2, it is determined that being used as the central pixel point of block of pixels using each pixel;Create single
Member 306 is additionally operable to:To other pixels in block of pixels in addition to central pixel point according to each pixel
The color-values and transparence value of point are set.
In the technical scheme, by when it is determined that N is the odd number more than or equal to 2, to block of pixels
In other pixels in addition to central pixel point entered according to the color-values and transparence value of each pixel
Row setting, it is ensured that block of pixels creates the reliability and efficiency of process.
Fig. 4 shows the schematic block of picture pixels system according to another embodiment of the invention
Figure.
As shown in figure 4, picture pixels system 400 according to another embodiment of the invention, bag
Include:Determining unit 402, for being locally stored after the image of pixelation is pre-processed,
It is determined that the pixel information in treating the image of pixelation;Determining unit 402 is additionally operable to:It is determined that treating pixel
At intervals of the row pixel and row pixel of M pixel in the image of change, wherein, M be more than
Or the integer equal to 2;Picture pixels system 400 also includes:Adjustment unit 404, for that will go
The transparence value of pixel and row pixel is adjusted to default transparence value, to complete the figure for treating pixelation
The pixelation process of picture.
In the technical scheme, by the way that the transparence value of row pixel and row pixel is adjusted to default
Transparence value, simplifies operating procedure, improves the usage experience of user.
As shown in fig. 6, when M is 3, adjacent row pixel at intervals of 3 pixels, it is adjacent
Row pixel at intervals of 3 pixels, retain pixel 4, and transparent is set to pixel 3
In vain, to realize the pixelation process of image.
In the above-mentioned technical solutions, it is preferred that also include:Pretreatment unit 406, for local
The image for treating pixelation of storage carries out Fuzzy processing, with the pre- place for the image for completing to treat pixelation
Reason.
In the technical scheme, by being carried out to the image for treating pixelation being locally stored at obfuscation
Reason, reduces the details for the image for treating pixelation, to improve pixelation effect.
In the above-mentioned technical solutions, it is preferred that Fuzzy processing includes Gaussian Blur and handles and/or roll up
Product Fuzzy Processing.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that proposed in correlation technique
How to design a kind of technical problem of new picture pixels scheme, the present invention proposes a kind of picture
Pixelation scheme, by creating the block of pixels in image or carrying out transparence value adjustment to pixel, is carried
The high pixelation of terminal built-in picture, simplifies operating procedure, improves the usage experience of user.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for
For those skilled in the art, the present invention can have various modifications and variations.All essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the present invention
Protection domain within.