foo(Bitmap A) { Bitmap B = Scaling(A); //Do something with B } Bitmap scaling(Bitmap A) { if (condition) return A; else new Bitmap(); }
In