VectorImage::SetCapacity
Sets the current scale of the VectorImage.
GSErrCode SetCapacity ( ULong capacity );
Parameters
- capacity
- The desired new capacity in bytes.
Return value
If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.
Description
If you want to avoid the frequent reallocation of memory then you should guess the final size of the VectorImage and set it as the capacity at the beginning of the additions.
Requirements
- Version:API 10.0 or later, ModelerGraphics 8 or later
- Library:ModelerGraphicsImp.lib (Win) or ModelerGraphics.framework (Mac)
- Header:VectorImage.hpp