Polygon fill in Java - J2ME

Completado Publicado Oct 27, 2002 Pagado a la entrega
Completado Pagado a la entrega

Hello,

I need a Class to draw polygons in J2ME. This needs to work on the Nokia 7210 phone emulator. You can get a free development kit at [login to view URL] in the Java, MIDP section. It's called the Series 40 SDK Beta. This SDK has added objects & methods to do pixel level manipulation of images.

The main function will be passed the following info:

1) The fill color (RGB)

2) The border color (RGB)

3) The border width ( >= 1)

4) A pointer to an integer array which holds bezier curve coordinates. The first integer is the start point, the 2nd integer is the 1st bezier control point, the 3rd integer is the 2nd bezier control point, the 4th integer is the end of the curve. Assume the end of the previous curve is the starting point of the next curve. So the next integer hold the 1st control pt for the next curve, etc. The last point on the last curve will be the same as the first point on the first curve. The array ends in 0, 0, 0.

5) An antialias flag (True = do antialiasing of border line)

6) An Image to draw on.

The way I see this working is:

#1 - Convert the bezier curves into line segments. There's alot of code available on the internet for how to do this.

#2 - Do a standard polygon fill.

#3 - Draw the outline with a line drawing routine. Use some kind of anti-aliasing technique (Wu?).

Since this code will run on a slow phone, any optimizations are greatly appreciated =) For example, super-sampling for antialiasing isn't a good idea because there's not enough memory to make the larger sample. Also, you should allocate all memory at the start in one big chunk instead of allocating as you go. (...I'm talking about memory to hold the line info needed for the polygon fill, or whatever else).

There may be code that already does this.. such as an SVG rendering class or a Flash class. If you can find it great - then I just need it working on the Series 40 SDK version of J2ME.

Thanks!

Mark

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Complete ownership and distribution copyrights to all work purchased.

## Platform

Windows, J2ME - Use the Nokia Series 40 MIDP Concept SDK Beta 0.2. This is available for free at [login to view URL] in the Java->J2ME->Tools section.

That SDK has a Nokia 7210 emulator. You don't need to test it on the real phone.

You can use Forte or JBuilder or other J2ME development environments with this Nokia SDK.

Android Servicios de audio Blackberry Ingeniería Diseño gráfico iPhone Java MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #2879584

Sobre el proyecto

6 propuestas Proyecto remoto Activo Nov 3, 2002

Adjudicado a:

hernest

See private message.

$42.5 USD en 14 días
(122 comentarios)
6.8

6 freelancers están ofertando un promedio de $1183 por este trabajo

senobarsoft

See private message.

$187 USD en 14 días
(0 comentarios)
0.0
vaidyvw

See private message.

$425 USD en 14 días
(0 comentarios)
0.0
psconsultants

See private message.

$5950 USD en 14 días
(0 comentarios)
0.0
catsl

See private message.

$152.15 USD en 14 días
(1 comentario)
0.0
edwardbrooklen

See private message.

$340 USD en 14 días
(0 comentarios)
0.0