---
title: "CFCharacterSetCreateBitmapRepresentation(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfcharactersetcreatebitmaprepresentation(_:_:)"
---

# CFCharacterSetCreateBitmapRepresentation(_:_:)

Creates a new immutable data with the bitmap representation from the given character set.

## Declaration

```swift
func CFCharacterSetCreateBitmapRepresentation(_ alloc: CFAllocator!, _ theSet: CFCharacterSet!) -> CFData!
```

## Parameters

- `alloc`: The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the current default allocator.
- `theSet`: The set from which to create a bitmap representation. Refer to the comments for doc://com.apple.corefoundation/documentation/CoreFoundation/CFCharacterSetCreateWithBitmapRepresentation(_:_:) for the detailed discussion of the bitmap representation format.

## Return Value

Return Value A new CFData object containing a bitmap representation of theSet. Ownership follows the The Create Rule.

## See Also

### Querying Character Sets

- [CFCharacterSetHasMemberInPlane(_:_:)](corefoundation/cfcharactersethasmemberinplane(_:_:).md)
- [CFCharacterSetIsCharacterMember(_:_:)](corefoundation/cfcharactersetischaractermember(_:_:).md)
- [CFCharacterSetIsLongCharacterMember(_:_:)](corefoundation/cfcharactersetislongcharactermember(_:_:).md)
- [CFCharacterSetIsSupersetOfSet(_:_:)](corefoundation/cfcharactersetissupersetofset(_:_:).md)
