یادگیری پردازش تصویر در اندروید
سلام
امیدوارم که حال همتون خوب باشه
من علاقه ی زیادی به مباحث پردازش تصویر دارم
میخواستم بدونم برای اینکه پردازش تصویر در اندروید رو یاد بگیرم باید از کجا شروع کنم و چه مباحثی رو یاد بگیرم؟
اگه منبع فارسی زبانی میشناسید خوشحال میشم معرفی کنید
public static Bitmap mark(Bitmap src, String watermark, Point location, Color color, int alpha, int size, boolean underline) {
int w = src.getWidth();
int h = src.getHeight();
Bitmap result = Bitmap.createBitmap(w, h, src.getConfig());
Canvas canvas = new Canvas(result);
canvas.drawBitmap(src, 0, 0, null);
Paint paint = new Paint();
paint.setColor(color);
paint.setAlpha(alpha);
paint.setTextSize(size);
paint.setAntiAlias(true);
paint.setUnderlineText(underline);
canvas.drawText(watermark, location.x, location.y, paint);
return result;
}
این نمونه کدی از پردازش تصویر که یک watermark رو به تصویرتون اضافه میکنه
جهت Rotate کردن تصاویر(چرخش) :
public static Bitmap rotate(Bitmap src, float degree) {
// create new matrix
Matrix matrix = new Matrix();
// setup rotation degree
matrix.postRotate(degree);
// return new bitmap rotated using matrix
return Bitmap.createBitmap(src, 0, 0, src.getWidth(), src.getHeight(), matrix, true);
}
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .