Yes, it is.
Try SpriteMethodTest, set 100 sprites, select OpenGL / Use VBO, let
it run for a while. You will get something around 20ms / 50 fps. Now
run it second time, and simply touch screen while test is running. You
will get something around 35ms / 29 fps. So it is 15 ms difference.
As I
As we all know, Google released Android's source today.
But you can't get source if you are Windows user.
Luckily, there is a web interface (http://git.source.android.com),
which allows you to browse all files.
So I wrote very simple program that parses htmls, collects links and
downloads files.
Maybe it is jpg format that causing problems? Try converting images to
png.
On 30 сент, 16:17, Matteo Crippa [EMAIL PROTECTED] wrote:
Easy i was playing with a little app i'm developing but i've just
found a little problem... let's explain me it...
I created a sdcard and inside it I placed
Consider two ways to draw a rectangle:
//-
int x=10;
int y=10;
int w=2;
int h=2;
canvas.drawRect(x,y,x+w,y+h,p); // (1)
float[] lines=new float[]{
x,y,x+w,y,
x+w,y,x+w,y+h,
x+w,y+h,x,y+h,
x,y+h,x,y
};
How exactly float coordinates are mapped to pixels (provided that
there is no transformation)?
I guess they are rounded in a good old fashion way: (int)
(floatCoordiate+0.5f). Am I correct?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Yes, p is Paint object set up as follows:
Paint p=new Paint();
p.setColor(0xFF80);
p.setStyle(Paint.Style.STROKE);
Style.STROKE is needed for drawRect to actually draw rect, issue with
right-bottom pixel shows itself independently of Style.
On 11 сент, 19:48, Mike Reed [EMAIL PROTECTED]
It seems that nine-patch behaves wierdly when scaled down.
I created button and specified it to be 20x20 pixels. Button drawable
is 44x48 and has 2x2 stretchable area. Downscaling produced weird
results. In fact, the result didn't seem to be the result of scaling
at all. It looked like result of
, Sep 9, 2008 at 10:15 AM, sahn0 [EMAIL PROTECTED] wrote:
It seems that nine-patch behaves wierdly when scaled down.
I created button and specified it to be 20x20 pixels. Button drawable
is 44x48 and has 2x2 stretchable area. Downscaling produced weird
results. In fact, the result didn't seem
It seems that in 0.9 SDK it is impossible to specify drawables (and
other resources) for different pixel density.
With image.png both in drawable and drawable-96dpi I get ERROR
Resource entry image is already defined..
Is this a known bug?
--~--~-~--~~~---~--~~
9 matches
Mail list logo