Having an image object of type BufferedImage -an image of your choice- that has the following artifacts


Download 74.36 Kb.
Sana03.11.2023
Hajmi74.36 Kb.
#1745032
Bog'liq
Java 4 tasks


1 –
Having an image object of type BufferedImage –an image of your choice- that has the following artifacts:



  1. image has a lot of noise

  2. image is sheared towards the positive x-directions

  3. image is sheared towards the positive y-directions

  4. image has inverted colors

  5. image is zoomed in

  6. image is colored while we want it in grayscale

  7. image is to be written to the hard disk

  8. A different image is to be loaded from the hard disk

Write a java code segment to resolve the above problems.
2 -

  1. Adopting suitable Java primitives and based on the least significant , implement one of the following shapes:








b) Snapshot the output of a)


c) Use suitable rendering to fill-in the shape suitably using suitable and well aligned-texture to reflect the real shape of your drawing.


3 –

  1. Write a java code segment to plot the following parametric equation:


Use suitable scaling values to show the drawing.

  1. Update the code in a) to show thick drawing without using Java strokes.

  2. Update the code in a) to show noisy shape

  3. Show snapshots for b), c)

4 -
Adopt appropriate Java animation code to implement the video in the file “test4.wmv” and given that the parametric equation for a circle.
x=r*cos(t)
y=r*sin(t)
with t in range [0, 2] and r is the radius of the circle.


Download 74.36 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling