C# Class to generate button bitmaps (pressed/hover/etc)

Completado Publicado Sep 9, 2009 Pagado a la entrega
Completado Pagado a la entrega

In C# 2.0, create a class that manipulates a bitmap to generate the appearance of:

a)? beveled edge around the bitmap (like a button)

b)? hovered state (when the mouse passes over the button)

c)? pressed state (when the user clicks the button)

d)? excited state (button blinks as a visual cue that it can do something)

The class will have a Bitmap argument to its constructor and a method to create the derived image.?

## Deliverables

Here is the proposed class outline:

public class ButtonRenderer

{

? ? ? ?

? ? ? ? public ButtonRenderer(Bitmap bitmap)? {? ? ...? ? } // constructor

? ? ? ? ? ? ? ?

? ? ? ? public Bitmap CreateNormal(...) {...} //normal button appearance? ? ? ?

? ? ? ? public Bitmap CreatePressed(...)? {...} //button? with pressed appearance

? ? ? ? public Bitmap CreateHovered(...) {...} //button with hovered appearance

? ? ? ? public Bitmap CreateExcited(...) {...} //button with excited appearance

}

*** The Create...() methods should have parameters that control the rendering.? ? Colors or gradients or brushes or whatever.? I don't know specifically, because i dont know how to create the effects.? But i am suggesting that where appropriate, parameters should be used to allow the most customization.?

*** It is a requirement that the Create... methods cache a copy of the derived image locally so that, if called again, the cached copy is returned and the bitmap manipulation only needs to occur once.

*** You should create a test program that shows the button in a picture box and when mouse hovers over it, it changes to the hovered state and when clicked (MouseDown), it changes to the Pressed state, and maybe alternates between the excited state and the normal state when some other button is pressed (call it "Excited On/Off")

*** See the images contained in the attached zip as examples of the button effect.? You will find the original (passed to the constructor) and then each derived image.? ? Please note, these images were created by hand and i dont expect your effect to dupliate it exactly.? ? They are being shown to demonstrate the basic effect.

Animación 3D Ingeniería MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #2871140

Sobre el proyecto

7 propuestas Proyecto remoto Activo Sep 10, 2009

Adjudicado a:

fivel

See private message.

$85 USD en 2 días
(1 comentario)
1.9

7 freelancers están ofertando un promedio de $91 por este trabajo

DebasisB

See private message.

$106.25 USD en 2 días
(143 comentarios)
7.0
ddumitrascu

See private message.

$106.25 USD en 2 días
(119 comentarios)
5.5
certifiedprvw

See private message.

$85 USD en 2 días
(7 comentarios)
4.7
yurok1975

See private message.

$85 USD en 2 días
(24 comentarios)
4.2
blindyvw

See private message.

$85 USD en 2 días
(8 comentarios)
3.2
Legolas24

See private message.

$85 USD en 2 días
(3 comentarios)
2.3