السلام عليكم
اولا احب ان اشكر المساهمين في بناء هذا المنتدى الرائع
عندي مشكله في عمل برنامج
اريد فقط methods لبرنامج الصور عندي برنامج يسوي خصائص للصور مثل crop, inverse, flip
بس المشكله عملت كل شي اللهم الميثود تمشكلت فيه
فيا جماعة الخير لو توافوني وحد يساعدني كيفية انشاء ميثود للخصائص التالية
The operations that you must implement as base tasks are:
fillImage - Fill the whole image with a given colour. Parameters: the RGB colour values.
drawRect - Draw a rectangle onto the image. Parameters: top, left, bottom, right, colour (RGB).
fillRect - Fill a given rectangle in the picture with a colour. Parameters: top, left, bottom, right, colour (RGB).
subtract - Subtract an image from another. Note that “addImg” is already implemented.
overlay - similar to "add" or "subtract", but replace every pixel with the average of the pixel values of the two
source images
crop - Cut a rectangle out of the image and make that the new image. Parameters: top, left, bottom, right of the
crop rectangle.
invert - Invert each colour value. That is: 0 becomes 255, 1 becomes 254, 2 becomes 253, …
threshold - turn each dark pixel to black (0), middle pixels to grey (127), light pixels to white (255). Note that
coloured pixels must be converted to grey levels for this.
smooth3 - replace each pixel with average of the values in the 3 x 3 pixel square centred on it
flip - turn the picture upside down or left-to-right
اتريا الرد منكم