Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Difference between C# standard image segmentation and image segmentation in SKIASHARP

Techno_DevelopTechno_Develop Member ✭✭✭

The image is divided in C# as shown in the code below.
I want to make this a SKIASHARP one, but I don't know how to do it.
Please tell me.

img = Image.FromFile(imgpath);
Rectangle rect;
int iX = (nX ) % tilecnt;
int iY = (nY ) % tilecnt;

rect = new Rectangle(iX * (img.Width / tilecnt), iY * (img.Height / tilecnt), (img.Width / tilecnt), (img.Height / tilecnt));

Bitmap bmpNew = new Bitmap(img);
bmpNew = bmpNew.Clone(rect, bmpNew.PixelFormat);
img = bmpNew;

Answers

Sign In or Register to comment.