System: mac osx. Now use the camera to get the data, how to display it in the video, is to get to Chen in every way into bitmap image painting inside out? ? To use image processing to those classes? ? Select the kind of view as a canvas better? ? ?
Reply:
Reply:
I am doing anything wrong? ? This setting can not be used to display video images the way? ? ?
if (getFrame (handle, _pBuffer, 0))
{
NSData * data = [NSData dataWithBytes: _pBuffer length: sizeof (_pBuffer)];
/ / Update the display Area to redraw the new frame
NSBitmapImageRep * bitmapRep = [NSBitmapImageRep imageRepWithData: data];
NSImage * image = [[NSImage alloc] initWithCGImage: [bitmapRep CGImage] size: NSMakeSize (_iWidth, _iHeight)];
[_frameView SetImage: image];
[Image release];
}
}
Reply:
Do not know, Bangding a
Reply:
Hey, knot paste it, fiddle with it, too lazy to say
No comments:
Post a Comment