@@ -150,6 +150,14 @@ public class IosCanvas implements Canvas {
|
||||
this.cgBitmapContext.fillRect(rect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillRectangle(float x, float y, float width, float height, int color) {
|
||||
CGRect rect = new CGRect(x, y, width, height);
|
||||
setFillColor(this.cgBitmapContext, (color));
|
||||
this.cgBitmapContext.setBlendMode(CGBlendMode.Normal);
|
||||
this.cgBitmapContext.fillRect(rect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHeight() {
|
||||
return this.cgBitmapContext != null ? (int) this.cgBitmapContext.getHeight() : 0;
|
||||
@@ -159,12 +167,4 @@ public class IosCanvas implements Canvas {
|
||||
public int getWidth() {
|
||||
return this.cgBitmapContext != null ? (int) this.cgBitmapContext.getWidth() : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillRectangle(int x, int y, int width, int height, int color) {
|
||||
CGRect rect = new CGRect(x, y, width, height);
|
||||
setFillColor(this.cgBitmapContext, (color));
|
||||
this.cgBitmapContext.setBlendMode(CGBlendMode.Normal);
|
||||
this.cgBitmapContext.fillRect(rect);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user