已取消

Assignment uni

Paint Simulato:

For this project will implement the basic functionality of a simple image editor (eg Microsoft Paint, Pinta, etc.). Specifically, the program will read your keyboard commands a series of image processing. Finally, the program will display the resulting image.

The image will be represented by a matrix of pixels, width * height size. A pixel is represented by 3 bytes (numbers with values between 0 and 255)

The channels are saved for each pixel in order of RGB (Red, Green, Blue).

On each line read from the keyboard will be composed of an operation code and corresponding parameters.

Example:

Initialization from an existing image:

1 2 3

0 0 255 0 255 0

255 0 0 128 0 128

255 255 255 0 0 0

// This call replaces the current image with a new image having three rows and two columns.

The pixel (0, 0) has the value rgb (0, 0, 255), therefore it is blue.

The pixel (0, 1) is set to rgb (0, 255, 0), therefore it is green, etc.

//

and after that when user input those number and enter it, it should continue for the operation like if the user input:

CROP:

2 start_col start_line end_col end_line// Following the operation, the current image is overwritten with the image bounded by drepunghiul having the upper left corner coordinates (start_line, START_COL) and lower right corner coordinates (end_line, END_COL).

and when i will enter that operation and then print 8 it should crop my picture which in initialize in first.

and then it should wait for my anther command from user.

Resize:

3 width height // Changes the current image size. If one dimension is larger, new lines and / or columns will be filled with white pixels. If the new dimensions are smaller, the call is equivalent to an instruction by crop type:

stained region:

4 start_col start_line end_col end_line r g b

//Following the operation, the pixels in the upper left corner rectangle with coordinates (start_line, START_COL) and lower right corner coordinates (end_line, END_COL) will be overwritten with the pixel values r, g, b.

Blur:

5 num_iter

//Blur involves replacing each pixel with its neighbors arithmetic mean (Left, Right, Down, Up). The calculation will be performed separately for each color channel, and the result will be truncated to an integer. For pixels that are on the edge of the image, taking into account only the items in the image.

This operation is repeated num_iter times.

Rotation:

6 num_rot

// Following the operation, the image will be rotated num_rot 90 degrees in clockwise.

Fill (bonus):

7 start_col start_line r g b

// Following the operation, the pixel at position (start_line, START_COL) will be overwritten with the pixel value r, g, b. The operation will be repeated recursively for all its neighbors (left, right, up, down) that were the same color pixel original (start_line, START_COL).

If it has all the original pixel color (r, g, b) operation produces no effect.

print:

8

// Following the operation, you will show the height and width stdout current image or the image itself. The image will be displayed in the same format as in step initialization.

Exit:

0

//If receives instruction exit, the program stops successfully.

and for more detail i have post the instruction and you can talk to me about this as well

thanks :)

技能: C 编程, C++编程, Java, PHP, 软件构架

查看更多: outsource uni assignment research, resize image command line, business law uni assignment answer, business law uni assignment, uni assignment, java coding uni assignment, software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, command resize jpg, resize jpg command, software write websites idea, resize jpeg command line, command line resize jpg, javascript rollover image resize effect, software write book images, software write books, software write protection, free software write book, software write book, php effect image resize onmouseover

About the Employer:
( 5 reviews ) kabul, Afghanistan

项目ID: #12271045

8名威客为此工作的平均竞标价是$190

$222USD 在1天里
(150条评论)
6.5
wizard2015

Dear sir/madam, I am experienced software developer (please check my freelancer profile and customer reviews for more details) and I can complete this project for you. I make warranty for providing clean, readable, we 更多

$100 USD 在3天内
(56条评论)
6.0
$25USD 在1天里
(50条评论)
5.7
spspasov89

Do it yourself, you lazyscum

$999 USD 在2313164天内
(3条评论)
4.4
SamindaPeramuna

Hi I am a software developer with over 5 years of experience and two of those are in the UK. Please refer to my profile for more information. I can get this done within one day. Let us have a chat about what nee 更多

$35USD 在1天里
(23条评论)
4.0
amariitism

Hello We are highly motivated young technocrats from IIT(ISM) Dhanbad, India. We are approachable, you can come to us if you have a struggle, we are happy to help. Team TiponTongue IIT(ISM) Dhanbad, India

$25USD 在1天里
(5条评论)
3.5
forhadshamim8

i Done this kind of project before. the code language was php. thanks

$25USD 在1天里
(11条评论)
3.1
tk2

Hello, I'm a C programmer with specialty in image processing. I've read the instructions, I guess the document was translated to english using translating software..

$60 USD 在4天内
(6条评论)
2.5
alteregoanne

A proposal has not yet been provided

$24 USD 在4天内
(1条评论)
0.8
stevorobby

I'm a very experienced java coder. Not sure what the c and php is required for in this project.

$55USD 在1天里
(0条评论)
0.0