public class CroppingAvatarImageDataProviderFactoryImpl extends Object implements CroppingAvatarImageDataProviderFactory
Constructor and Description |
---|
CroppingAvatarImageDataProviderFactoryImpl(AvatarTagger avatarTagger,
ImageScaler scaler) |
Modifier and Type | Method and Description |
---|---|
AvatarImageDataProvider |
createStreamsFrom(InputStream uploadedImage,
Selection cropping)
Creates avatar image data provider that uses fragment of image.
|
public CroppingAvatarImageDataProviderFactoryImpl(AvatarTagger avatarTagger, ImageScaler scaler)
public AvatarImageDataProvider createStreamsFrom(InputStream uploadedImage, Selection cropping) throws IOException
CroppingAvatarImageDataProviderFactory
createStreamsFrom
in interface CroppingAvatarImageDataProviderFactory
uploadedImage
- original image data streamcropping
- image fragment description (if null some matching to requested size part of image is taken)TypeAvatarService
, AvatarManager
IOException
Copyright © 2002-2021 Atlassian. All Rights Reserved.