---
title: PKStrokeRenderState
framework: pencilkit
role: symbol
role_heading: Class
path: pencilkit/pkstrokerenderstate
---

# PKStrokeRenderState

An object that captures the render-time state of a stroke, such as grain texture position.

## Declaration

```occ
@interface PKStrokeRenderState : NSObject
```

## Overview

Overview PKStrokeRenderState is the Objective-C representation of a stroke’s rendering context. It conforms to NSCopying and NSSecureCoding for archiving. In Swift, use the equivalent value type PKStroke.RenderState instead.

## Topics

### Getting the render state

- [grainOffset](pencilkit/pkstrokerenderstate/grainoffset.md)

### Using Swift types

- [PKStroke.RenderState](pencilkit/pkstroke-swift.struct/renderstate-swift.struct.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [NSCopying](foundation/nscopying.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Canvas

- [PKCanvasView](pencilkit/pkcanvasview.md)
- [PKDrawingReference](pencilkit/pkdrawingreference.md)
- [PKStrokeReference](pencilkit/pkstrokereference.md)
- [PKStrokePathReference](pencilkit/pkstrokepathreference.md)
- [PKStrokePointReference](pencilkit/pkstrokepointreference.md)
- [PKInkReference](pencilkit/pkinkreference.md)
- [PKConvertedBezierPointReference](pencilkit/pkconvertedbezierpointreference.md)
- [PKFloatRange](pencilkit/pkfloatrange.md)
