how to make screenshot

Generated on 4/6/2025

1 search

Tailscan

This post is brought to you by Tailscan, the best devtool for Tailwind CSS.

To take a screenshot using the new APIs presented at WWDC, you can use the SC screenshot manager from the ScreenCaptureKit. This manager offers a screenshot API that allows you to take screenshots in HDR. Here's a brief overview of how you can achieve this:

  1. Create a Configuration: Start by creating a configuration for HDR local display. This configuration will be pre-populated with recommended values for taking HDR screenshots.

  2. Choose the Output Format: If your app needs CM sample buffers for the screenshot, use the captureSampleBuffer function. If a CG image is preferred, use the captureImage function.

  3. Use Presets: Presets are available for taking HDR screenshots, and you can choose between local or canonical display presets depending on your needs.

For more detailed information, you can refer to the session Capture HDR content with ScreenCaptureKit (05:51) where they discuss the screenshot API and provide code examples.

Introducing enterprise APIs for visionOS

Introducing enterprise APIs for visionOS

Find out how you can use new enterprise APIs for visionOS to create spatial experiences that enhance employee and customer productivity on Apple Vision Pro.

Build a great Lock Screen camera capture experience

Build a great Lock Screen camera capture experience

Find out how the LockedCameraCapture API can help you bring your capture application’s most useful information directly to the Lock Screen. Examine the API’s features and functionality, learn how to get started creating a capture extension, and find out how that extension behaves when the device is locked.

Capture HDR content with ScreenCaptureKit

Capture HDR content with ScreenCaptureKit

Learn how to capture high dynamic colors using ScreenCaptureKit, and explore new features like HDR support, microphone capture, and straight-to-file recording.

Discover area mode for Object Capture

Discover area mode for Object Capture

Discover how area mode for Object Capture enables new 3D capture possibilities on iOS by extending the functionality of Object Capture to support capture and reconstruction of an area. Learn how to optimize the quality of iOS captures using the new macOS sample app for reconstruction, and find out how to view the final results with Quick Look on Apple Vision Pro, iPhone, iPad or Mac. Learn about improvements to 3D reconstruction, including a new API that allows you to create your own custom image processing pipelines.

Optimize for the spatial web

Optimize for the spatial web

Discover how to make the most of visionOS capabilities on the web. Explore recent updates like improvements to selection highlighting, and the ability to present spatial photos and panorama images in fullscreen. Learn to take advantage of existing web standards for dictation and text-to-speech with WebSpeech, spatial soundscapes with WebAudio, and immersive experiences with WebXR.