Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
package fr.android.colorpicker; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PointF; import android.util.Log; import android.view.View; public class CircleView extends View { private final static int WIDTH = 280; private final static int HEIGHT = 280; public CircleView(Context context) { super(context); this.setDrawingCacheEnabled(true); } private ARGB getRGBAAtPoint(PointF point) { long t = System.currentTimeMillis(); float radius = CircleView.WIDTH / 2; float centreX = CircleView.WIDTH / 2; float centreY = CircleView.HEIGHT / 2; float deltaX = point.x - centreX; float deltaY = point.y - centreY; float distSquared = deltaX * deltaX + deltaY * deltaY; if (distSquared > radius * radius) { return null; } else { float dist = (float) Math.sqrt(distSquared); float hue = (float) (Math.atan2(deltaY, deltaX) * 180.0f / Math.PI); float saturation = dist / radius; HSV hsv = new HSV(hue, saturation, 1); float alpha = Math.abs(dist - radius) < 1.0f ? Math.abs(dist - radius) : 1.0f; Log.i("CIRCLEVIEW_getRGBAAtPoint", "time to draw: " + (System.currentTimeMillis() - t) / 1000); t = System.currentTimeMillis(); ARGB argb = new ARGB(alpha, hsv.toRGB()); Log.i("CIRCLEVIEW_hsv.toRGB", "time to draw: " + (System.currentTimeMillis() - t) / 1000); return argb; } } @Override public void draw(Canvas canvas) { // super.draw(canvas); long t = System.currentTimeMillis(); for (int x = 0; x < CircleView.WIDTH; x++) { for (int y = 0; y < CircleView.HEIGHT; y++) { ARGB argb = this.getRGBAAtPoint(new PointF((float) x, (float) y)); if (argb != null) { int color = ((int) (argb.getAlpha() * 255.f) << 24) | ((int) (argb.getRGB().getB() * 255.f) << 16) | ((int) (argb.getRGB().getG() * 255.f) << 8) | ((int) (argb.getRGB().getR() * 255.f)); Paint paint = new Paint(); paint.setColor(color); canvas.drawPoint((float)x, (float)y, paint); } } } Log.i("CIRCLEVIEW_DRAW", "time to draw: " + (System.currentTimeMillis() - t) / 1000); } }