You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to crop some images by removing transparent edges.
What is the fastest way to do this ?
Currently, I create a SKImage from a byte[], with SKImage.FromEncodedData(request.ImageData);
"Simple" way to do it :
create a SKBitmap first with SKBitmap.Decode(request.ImageData))
modify the SKBitmap (unsafe access, examine all pixels) => create a new SKBitmap)
convert the new bitmap to an image with SKImage.FromBitmap(bitmap);
Is there a fastest way to do this ?
If I have to modify my bitmap with pixel access, is there a fast algorithm ?
Is there a way to convert a bitmap to an image without copy (given that I won't use the bitmap after this).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I want to crop some images by removing transparent edges.
What is the fastest way to do this ?
Currently, I create a SKImage from a byte[], with SKImage.FromEncodedData(request.ImageData);
"Simple" way to do it :
Is there a fastest way to do this ?
If I have to modify my bitmap with pixel access, is there a fast algorithm ?
Is there a way to convert a bitmap to an image without copy (given that I won't use the bitmap after this).
Thank you
Beta Was this translation helpful? Give feedback.
All reactions