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

Fertiggestellt Veröffentlicht Sep 9, 2009 Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

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.

3D Animation Ingenieurwesen MySQL PHP Softwarearchitektur Testen von Software

Projekt-ID: #2871140

Über das Projekt

7 Vorschläge Remote Projekt Aktiv Sep 10, 2009

Vergeben an:

fivel

See private message.

$85 USD in 2 Tagen
(1 Bewertung)
1.9

7 Freelancer bieten im Durchschnitt $91 für diesen Job

DebasisB

See private message.

$106.25 USD in 2 Tagen
(143 Bewertungen)
7.0
ddumitrascu

See private message.

$106.25 USD in 2 Tagen
(119 Bewertungen)
5.5
certifiedprvw

See private message.

$85 USD in 2 Tagen
(7 Bewertungen)
4.7
yurok1975

See private message.

$85 USD in 2 Tagen
(24 Bewertungen)
4.2
blindyvw

See private message.

$85 USD in 2 Tagen
(8 Bewertungen)
3.2
Legolas24

See private message.

$85 USD in 2 Tagen
(3 Bewertungen)
2.3