---
title: "NSCopyBits(_:_:_:)"
framework: appkit
role: symbol
role_heading: Function
path: "appkit/nscopybits(_:_:_:)"
---

# NSCopyBits(_:_:_:)

Copies a bitmap image to the location specified by a destination point.

## Declaration

```swift
func NSCopyBits(_ srcGState: Int, _ srcRect: NSRect, _ destPoint: NSPoint)
```

## Discussion

Discussion Copies the pixels in the rectangle specified by srcRect to the location specified by destPoint. The source rectangle is defined in the graphics state designated by srcGState. If srcGState is NSNullObject, the current graphics state is assumed. The destPoint destination is defined in the current graphics state.

## See Also

### Functions

- [NSConvertGlyphsToPackedGlyphs(_:_:_:_:)](appkit/nsconvertglyphstopackedglyphs(_:_:_:_:).md)
- [raiseBadArgumentException(_:_:_:)](appkit/nsaccessibility-swift.struct/raisebadargumentexception(_:_:_:).md)
- [NSReleaseAlertPanel(_:)](appkit/nsreleasealertpanel(_:).md)
- [NSDisableScreenUpdates()](appkit/nsdisablescreenupdates().md)
- [NSEnableScreenUpdates()](appkit/nsenablescreenupdates().md)
- [NSDrawColorTiledRects(_:_:_:_:_:)](appkit/nsdrawcolortiledrects(_:_:_:_:_:).md)
- [NSSetShowsServicesMenuItem(_:_:)](appkit/nssetshowsservicesmenuitem(_:_:).md)
- [NSShowsServicesMenuItem(_:)](appkit/nsshowsservicesmenuitem(_:).md)
- [NSDottedFrameRect(_:)](appkit/nsdottedframerect(_:).md)
- [NSReadPixel(_:)](appkit/nsreadpixel(_:).md)
- [NSGetWindowServerMemory(_:_:_:_:)](appkit/nsgetwindowservermemory(_:_:_:_:).md)
- [fileContentsType(forPathExtension:)](appkit/nspasteboard/pasteboardtype/filecontentstype(forpathextension:).md)
- [fileNameType(forPathExtension:)](appkit/nspasteboard/pasteboardtype/filenametype(forpathextension:).md)
- [representedPathExtension](appkit/nspasteboard/pasteboardtype/representedpathextension.md)
- [representedPathExtensions(from:)](appkit/nspasteboard/pasteboardtype/representedpathextensions(from:).md)
