الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

برنامج يتحكم بالصور

مغلق
بدأه لحظة شوق في 10 أكتوبر 2005 · 1 رد · 579 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

اولا احب ان اشكر المساهمين في بناء هذا المنتدى الرائع

عندي مشكله في عمل برنامج

اريد فقط 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

اتريا الرد منكم

#2

اخي العزيز اهلا بك معنا..

ارجو منك ملاحظة بانه في منتدانا و خصوصا هذا القسم نهتم جدا بتطبيق القوانين و قواعد الطرح العامة لذا ارجو منك مراجعتها بشكل جيد لضمان عدم تكرار المخالفة

و يجب ان تضع محاولتك اين هي هذه المحاولة التي تقول عنها ارفقها هنا لكي نقدر نساعدك

و لانك عضو جديد تماما سوف اعدل لك عنوان الموضوع هذه المرة فقط

و اهلا بك عزيزي مرة اخرى

Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why

هذا الموضوع مغلق.

مواضيع مشابهة