Creates an OpenGL texture representation from a subregion of the image source using the provided color space. (required)
Original signature is '- (BOOL) lockTextureRepresentationWithColorSpace:(CGColorSpaceRef)colorSpace forBounds:(NSRect)bounds'
Available in Mac OS X v10.5 and later.

Declaration Syntax
bool LockTextureRepresentationWithColorSpaceForBounds(
IntPtr colorSpace,
NSRect bounds
)
Function LockTextureRepresentationWithColorSpaceForBounds ( _
colorSpace As IntPtr, _
bounds As NSRect _
) As Boolean
bool LockTextureRepresentationWithColorSpaceForBounds(
IntPtr colorSpace,
NSRect bounds
)

Parameters
- colorSpace (IntPtr)
- A Quartz color space.
- bounds (NSRect)
- The bounds of the subregion, expressed in pixels. They must be aligned to integer boundaries.

Return Value
YES is successful; NO if texture can’t be created.

Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)
Assembly:
Monobjc.Quartz (Module: Monobjc.Quartz)