Method | Description | |
---|---|---|
Resize ( Stream s, Stream target, int maxwidth, int maxheight, int jpegQuality = 90 ) : void |
Less efficient than LightResize, and cannot resize files in place. Caller MUST ensure the first stream is disposed if the second stream fails to open. I.e, place first stream in using(){} clause, and open the second stream inside it before calling Resize()
|
Method | Description | |
---|---|---|
RenderAndEncode ( |
Resizes the provided bitmap to the given target size and writes it to the target stream with jpeg encoding. Warning: Does NOT dispose the source bitmap, source stream, or target stream!
|
public static Resize ( Stream s, Stream target, int maxwidth, int maxheight, int jpegQuality = 90 ) : void | ||
s | Stream | |
target | Stream | |
maxwidth | int | |
maxheight | int | |
jpegQuality | int | |
return | void |