Enterprise VB

Capture screenshots in VB.NET

Add screenshot and scrolling GIF capabilities to your VB.NET applications with HttpClient. Familiar syntax, enterprise-ready, no headless browsers to manage.

Installation

  1. 1Use .NET 5+ (includes HttpClient)
  2. 2Get your API key from the dashboard
  3. 3Set the X-KEY header in your requests

Authentication

Include your API key in the X-KEY header with every request:

Imports System.Net.Http

Using client As New HttpClient()
    client.DefaultRequestHeaders.Add("X-KEY", "your-api-key")
    Dim bytes = Await client.GetByteArrayAsync(url)
End Using

VB.NET Screenshot Example

Capture a screenshot or create a scrolling GIF animation with a simple GET request:

Screenshot
Imports System.Net.Http
Imports System.IO

Using client As New HttpClient()
    client.DefaultRequestHeaders.Add("X-KEY", "your-api-key")
    Dim bytes = Await client.GetByteArrayAsync(
        "https://api.scrnpix.com/screenshot?url=https%3A%2F%2Fexample.com&width=1280&height=720&format=png"
    )
    File.WriteAllBytes("screenshot.png", bytes)
End Using
Animation
Imports System.Net.Http
Imports System.IO

Using client As New HttpClient()
    client.DefaultRequestHeaders.Add("X-KEY", "your-api-key")
    Dim bytes = Await client.GetByteArrayAsync(
        "https://api.scrnpix.com/animate?url=https%3A%2F%2Fexample.com&scroll_duration=3000&scroll_easing=ease-in-out"
    )
    File.WriteAllBytes("animation.gif", bytes)
End Using

Response Format

On success, the API returns the image binary data directly in the response body.

Status Code200 OK
Content-Typeimage/png, image/jpeg, or image/gif
BodyBinary image data (Byte())
Error ResponseError message with 4xx/5xx status

Key Features

Zero Setup

No need to install Selenium or manage browser instances. Just use HttpClient included in .NET.

Production Ready

Built on Cloudflare Workers with global edge network. Handles concurrency and browser lifecycle automatically.

VB.NET Integration

Familiar VB syntax with Async/Await. Works with Windows Forms, WPF, ASP.NET, or any VB.NET application.

Rich Features

Custom viewport sizes, full page capture, PNG/JPEG formats, scrolling GIFs with 15 easing functions.

Frequently Asked Questions

Do I need to install any browser dependencies for VB.NET?

No. Scrnpix runs browsers on our infrastructure. You only need HttpClient to make HTTP calls.

Can I use this with Windows Forms or WPF?

Yes. Scrnpix works with any VB.NET environment — Windows Forms, WPF, ASP.NET, or console applications.

How do I handle errors in VB.NET?

Use Try-Catch blocks for error handling. A 200 status means success with image bytes in the response.

What .NET version is required?

.NET 5+ is recommended for modern VB.NET support. The API is a simple HTTP GET request.

Ready to capture screenshots in VB.NET?

Get your API key and start rendering screenshots in seconds. Free tier includes 50 screenshots per month.

Start Free