sliverllight writeablebitmap questions

CLOSED
Bids
5
Avg Bid (USD)
$30
Project Budget (USD)
$30 - $30

Project Description:
I have sliverlight writeable bitmap question.

Please run attachd sample, then click test1 button, select attached Koala320x240.jpg.

In test1 button, I create WriteableBitmap named writeableResult, the width and height is 320x240.


Then I call following, I define WriteableBitmap named writeableSource width and height is 320x240, so it can clone to writeableResult and display it.

imageWidth = 320;
imageHeight = 240;

for (int i = 0; i < imageWidth; i++)
{

for (int j = 0; j < imageHeight; j++)
{


writeableResult.Pixels[j * imageWidth + i] = writeableSource.Pixels[j * imageWidth + i];

}

}


Please click test2 button, select attached Koala320x240.jpg. You will see the attached problem1.jpg result.

In test2 button, all code is same with test1 button ,only the writeableSource define width and height is 640x240
I expect the result like problem1result.jpg.

1. the coder need explain detail why the output is problem1.jpg not is problem1result.jpg.
I am first time use writeablebitmap, I do not fully understand why the output will become problem1.jpg.
I need the coder explain detail.so I can fully understand how to use pixels[].

2. the coder need modify test2 button, let it output result like problem1result.jpg.

3. the coder need Add test3 button, let it output result like problem2.jpg. The coder need create method it allow input the width and height of
writeableResult , the width and height of writeableSource, and the x and y parameter (it allow draw the writeableSource at specific position)

Skills required:
C# Programming, WPF
Additional Files: problem2.zip
Hire vc2006
Project posted by:
vc2006 Hong Kong
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


Hire Sup
$ 30
in 0 days
Hire codeteam17
$ 30
in 1 days
$ 30
in 1 days
$ 30
in 2 days
Hire SinhaOjas
$ 30
in 0 days