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

Image display area shape setting method and device

A region and image technology, applied in the field of image processing, can solve problems such as consuming CPU usage, achieve the effect of reducing usage and saving computing resources

Active Publication Date: 2017-09-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For this reason, in order to prevent jagged lines from appearing in the rounded corner area of ​​the rounded rectangle and achieve a better visual effect, the traditional technology usually needs to use the CPU Resources generate more triangles, which consumes a lot of CPU usage

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image display area shape setting method and device
  • Image display area shape setting method and device
  • Image display area shape setting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0034] In order to realize the image display area of ​​the rounded matrix, or realize the image display area of ​​arbitrary shape, and ensure the lower processor and memory utilization rate, improve the utilization rate of computer resources, in this embodiment, a special proposed A method for setting the shape of an image display area, the realization of the method may depend on a computer program, the computer program may run on a computer system based on the Von ...

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

PUM

No PUM Login to View More

Abstract

The invention discloses an image display area shape setting method and device. The method comprises steps that a texture area and a vertex coordinate of a to-be-displayed image area are acquired; a graphical program interface is called, and the vertex coordinate is inputted to a vertex shader of a graph processor GPU; a pixel shader corresponding to the vertex shader is acquired; pixel values of pixel points of a target image with the position belonging to the texture area are sampled, the pixel values are rendered through the pixel shader to the corresponding position of the texture area. The invention further discloses a shape setting device of the image display area. The method is advantaged in that the GPU can be utilized to generate the shape of the image display area, and a CPU utilization rate is reduced.

Description

technical field [0001] The invention relates to the field of image processing, in particular to a method and device for setting the shape of an image display area. Background technique [0002] Generally, in mobile phone or computer client programs, the display area of ​​a window component is a right-angled rectangular area. The computer program can determine the display area of ​​a right-angled rectangle by defining the vertices or length and width of the rectangular area. However, in some application scenarios, In order to adapt to the theme style of the operating system or application page, such as figure 1 As shown, the video display area needs to be designed in the appearance of a rounded rectangle, and a common practice in the prior art is to use the CPU to trim the corners of the video frame. [0003] refer to figure 2 As shown, for the rounded corner area, it is necessary to generate n triangles in the rounded corner area first, and approach the rounded corner thr...

Claims

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

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T11/00G06T1/20
CPCG06T1/20G06T11/001
Inventor 周秦
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More