// Returns the specified resource limit in megabytes. func GetResourceLimit(rtype ResourceType) int64 { return int64(C.MagickGetResourceLimit(C.ResourceType(rtype))) }
// Sets the limit for a particular resource in megabytes. func (mw *MagickWand) SetResourceLimit(rtype ResourceType, limit int64) error { C.MagickSetResourceLimit(C.ResourceType(rtype), C.MagickSizeType(limit)) return mw.GetLastError() }
// Sets the limit for a particular resource in megabytes. func (mw *MagickWand) SetResourceLimit(rtype ResourceType, limit int64) error { ok := C.MagickSetResourceLimit(C.ResourceType(rtype), C.MagickSizeType(limit)) return mw.getLastErrorIfFailed(ok) }