US 12,322,008 B2
Pixel-aligned drawing with floating-point layout
George Francis Mount, Palo Alto, CA (US)
Assigned to GOOGLE LLC, Mountain View, CA (US)
Appl. No. 17/996,440
Filed by Google LLC, Mountain View, CA (US)
PCT Filed May 5, 2020, PCT No. PCT/US2020/031526
§ 371(c)(1), (2) Date Oct. 18, 2022,
PCT Pub. No. WO2021/225585, PCT Pub. Date Nov. 11, 2021.
Prior Publication US 2023/0206520 A1, Jun. 29, 2023
Int. Cl. G06T 11/20 (2006.01); G06T 7/13 (2017.01); G06T 7/30 (2017.01); G06T 11/40 (2006.01)
CPC G06T 11/203 (2013.01) [G06T 7/13 (2017.01); G06T 7/30 (2017.01); G06T 11/40 (2013.01); G06T 2200/24 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
defining, by a computing device, a layout in floating point for a graphical user interface, the layout in floating point defining an area for drawing an element on a display screen, wherein the layout comprises one or more edges, wherein each edge of the layout has a corresponding floating point value;
identifying, by the computing device based on a physical pixel screen space, an edge of the layout in floating point that is not pixel-aligned to a physical pixel of the display screen, wherein the edge of the layout in floating point does not align with the physical pixel of the display screen based on the corresponding floating point value for the edge;
identifying, by the computing device, a pixel-aligned value for the edge of the layout, the pixel-aligned value identifying a physical pixel of the display screen; and
drawing, by the computing device, the element by aligning the element to the physical pixel of the display screen, the drawing based on the pixel-aligned value.