Add Extract/Clone apis for manipulating deconstructing images from from#344
Add Extract/Clone apis for manipulating deconstructing images from from#344JimBobSquarePants merged 4 commits intomasterfrom
Conversation
|
The Frame suffix seems nice and explicit to me but I don't think that the APIs should live in the ImageFrameCollection. (Don't ask me why it just doesn't feel right) |
|
@JimBobSquarePants I think you have this feeling because all of them are returning an |
|
@antonfirsov Yeah, that describes it well. |
|
@tocsoft All LGTM. Like that we manage the lifecycle of frames through our API now, preserving valid state for We probably need a gif manipulator example, because the behavior of some functions (eg. |
JimBobSquarePants
left a comment
There was a problem hiding this comment.
Very happy with this. It's come together very well!
…-frames Add Extract/Clone apis for manipulating deconstructing images from from
Prerequisites
Description
This adds the new APIs to
Image<TPixel>for cloning and extracting frames from an image.New APIs
Image<TPixel>.Clone(int frameIndex)Image<TPixel>.CloneAs<TPixel2>(int frameIndex)Image<TPixel>.Extract(int frameIndex)TODO
should these APIs be members of
Image<T>ofImageFrameCollection?i.e. do you call
image.Clone(index)orimage.Frames.CloneFrame(index)should the apis have the
Framepostfix? I feel this depended on if the API lives on the frames collection or the imageresolves #340