![]() This project also contains a simple PureBasic commandline program to demonstrate encoding and decoding. (The output image is vague and blurred anyway.) Commandline Program The PreShrink parameter can be set to #True to speed up encoding/decoding at a negligible cost in accuracy. The xComponents and 圜omponents refer to the number of color components encoded in the string. Directly BlurHash an input image (from file path) to an output fileĭeclare.i BlurHashFileToFile(SourceFile.s, DestFile.s, xComponents.i = #PB_Default, 圜omponents.i = #PB_Default, width.i = #PB_Default, height.i = #PB_Default, PreShrink.i = #False) Directly BlurHash an input image (already loaded) to an output imageĭeclare.i BlurHashImageToImage(SourceImage.i, DestImage.i = #PB_Any, xComponents.i = #PB_Default, 圜omponents.i = #PB_Default, width.i = #PB_Default, height.i = #PB_Default, PreShrink.i = #False) Currently the following subsystems are supported: Linux gtk2 : uses Gtk2 instead of Gtk1. ![]() Library Subsystem (currently only on Linux/MacOSX) Here you can select a different PB subsystem for compilation. Decode a BlurHash string to an image fileĭeclare.i BlurHashDecodeToFile(Hash.s, DestFile.s, width.i = #PB_Default, height.i = #PB_Default, PreShrink.i = #False) Includes line numbers information with the executable for the OnError-Library. Examples and full explanations are given. Chapter 4, Conditional Statements And Loops In this chapter I explain how PureBasic handles boolean values, the ‘If’ and ‘Select’ statements are introduced and loops are explained and demonstrated. Decode a BlurHash string to an image in memoryĭeclare.i BlurHashDecodeToImage(Hash.s, DestImage.i = #PB_Any, width.i = #PB_Default, height.i = #PB_Default, PreShrink.i = #False) the PureBasic language and its importance should be learned early on. Encode an image (from file path) and return its BlurHash stringĭeclare.s BlurHashEncodeFromFile(File.s, xComponents.i = #PB_Default, 圜omponents.i = #PB_Default, PreShrink.i = #False) Encode an image (already loaded) and return its BlurHash stringĭeclare.s BlurHashEncodeFromImage(Image.i, xComponents.i = #PB_Default, 圜omponents.i = #PB_Default, PreShrink.i = #False)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |