Foreground Element Display with Adaptive Contrast and Color Preservation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional XOR-based cursor drawing methods cause color shifts and increased background coverage, making them unsuitable for graphics and image drawing applications, and fixed-color cursors with static edges may not enhance visibility effectively.
Innovation Solution
A method where a foreground element's color value is calculated based on the brightness of background pixels and an adjustable contrast variable, preserving background color components while increasing contrast, allowing for dynamic and visible foreground elements without modifying the background image.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If XOR-based drawing mode is used to draw foreground elements, then the same drawing function can both draw and erase foreground images, but color shifts occur that interfere with the overall look of the image and cause user difficulty
Solution Approach 1:
The patent extracts the harmful color shift effect from the XOR drawing operation by using a different drawing mode (copy or overwrite mode) that directly writes foreground pixels to the frame buffer without causing color shifts. The erase function is handled separately by clearing specific pixels based on stored information, thus separating the drawing and erasing mechanisms to eliminate the harmful side effect.
Solution Approach 2:
The patent changes the drawing mode parameter from XOR to copy/overwrite mode, fundamentally altering how foreground pixels are written to the frame buffer. This parameter change eliminates the color shift phenomenon while maintaining the ability to draw and erase foreground elements through different operational sequences.
2Ease of operation
If XOR-based drawing mode is used to draw foreground elements, then the foreground image is drawn into the frame buffer, but the background image must be restored whenever the foreground image is to be erased
Solution Approach 1:
The patent applies preliminary action by storing information about foreground pixels before they are drawn or by tracking which pixels are foreground elements. This pre-stored information enables direct erasure of foreground elements without needing to restore the background, as the system knows exactly which pixels to clear based on the stored foreground mask or pixel data.
Solution Approach 2:
The patent uses a separate foreground mask or stored pixel data as a copy of the foreground element information. This copy allows the system to identify and erase foreground pixels without affecting the background, eliminating the need for background restoration while maintaining drawing capability.
3Difficulty of detecting and measuring
If a fixed-color cursor with static visibility-enhanced edge is used, then the edge of the cursor is visible over varying background colors, but the amount of background image covered by the foreground image element increases
Solution Approach 1:
The patent applies local quality by making the foreground element colors adaptive to the local background characteristics. Instead of using a fixed color scheme, the foreground element colors are dynamically adjusted based on the brightness and color of the underlying background pixels, ensuring visibility while maintaining a thin profile that covers minimal background area.
Solution Approach 2:
The patent introduces dynamics by making the foreground element colors change dynamically based on the background they are drawn over. The color calculation adapts to different background regions, providing consistent visibility enhancement without requiring a fixed thick border that would increase background coverage.
Data Source
AI summary
A set of pixels of a background element is identified according to a mask that defines a shape of a foreground element. A color value for a pixel of the foreground element is determined. The determining includes ascertaining a value of a measure of brightness of one or more pixels of a set of pixels of the background element and calculating the color value for the pixel of the foreground element based on the value of the measure of brightness and a value of an adjustable contrast variable. The calculating the color value for the pixel of the foreground element preserves in the foreground element a color component of the one or more pixels of the set of pixels of the background element and increases contrast with the value of the measure of brightness according to the value of the adjustable contrast variable.


