TUM CCSM Commons

edu.tum.cs.commons.treemap
Interface IDrawingPattern


public interface IDrawingPattern

A drawing pattern is a predicate that determines whether a given pixel belongs to the foreground or background. This way image generating processors can produce e.g. striped areas.

Version:
$Rev: 26931 $
Author:
Benjamin Hummel, $Author: besenreu $
Rating:
GREEN Hash: 492D98E7AC89E5A2194F2280F30485D3

Method Summary
 boolean isForeground(int x, int y)
          For the given x and y coordinates returns whether the pixel belongs to the foreground (otherwise it is background as we do not support transparency).
 

Method Detail

isForeground

boolean isForeground(int x,
                     int y)
For the given x and y coordinates returns whether the pixel belongs to the foreground (otherwise it is background as we do not support transparency). The coordinates are in pixels using the standard coordinate system for 2D graphics where (0,0) is the top left corner.


TUM CCSM Commons

TUM CCSM Commons - 2.7