s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
ImageFileGenerator
CreateBitmap
chevron_left Classes
class
ImageFileGenerator

Constructors

functionsImageFileGenerator

Properties

data_objectBlurdata_objectBrightnessdata_objectCacheToDiskdata_objectColorizedata_objectContrastdata_objectConvertHeightToNormalsdata_objectCroppingdata_objectFilePathdata_objectFlipHorizontaldata_objectFlipVerticaldata_objectFormatOverridedata_objectHuedata_objectInvertColordata_objectLosslessdata_objectMaxSizedata_objectNormalScaledata_objectPaddingdata_objectRotatedata_objectSaturationdata_objectSharpendata_objectTargetColordata_objectTint

Methods

lockCreateBitmapfunctionsCreateEmbeddedResourcelockCreateTexturefunctionsDeserialize
CreateBitmap
The processed image file. Missing, it's the 1x1 magenta of Sandbox.Texture.Invalid. A compiled texture has no image here: its pixels are read back from the texture, which takes a render device.
method
System.Threading.Tasks.ValueTask<Bitmap> CreateBitmap (Options options, CancellationToken ct)

Parameters

NameTypeDescription
options Options
ct CancellationToken

Returns

TypeDescription
System.Threading.Tasks.ValueTask<Bitmap>
Declared in Sandbox.Resources.ImageFileGenerator ยท Assembly Sandbox.Engine
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter