- 
                  
                  DeclarationSwift public enum FlipMode
- 
                  
                  DeclarationSwift var internalImage: gdImagePtr!
- 
                  
                  DeclarationSwift public var size: Size { get }
- 
                  
                  DeclarationSwift public var transparent: Bool { get set }
- 
                  
                  DeclarationSwift public enum ImageType
- 
                  
                  DeclarationSwift public init?(width: Int, height: Int, type: ImageType = .truecolor)
- 
                  
                  DeclarationSwift public init(gdImage: gdImagePtr)
- 
                  
                  DeclarationSwift public func resizedTo(width: Int, height: Int, applySmoothing: Bool = true) -> GDImage?
- 
                  
                  DeclarationSwift public func resizedTo(width: Int, applySmoothing: Bool = true) -> GDImage?
- 
                  
                  DeclarationSwift public func resizedTo(height: Int, applySmoothing: Bool = true) -> GDImage?
- 
                  
                  DeclarationSwift public func cropped(to rect: Rectangle) -> GDImage?
- 
                  
                  
- 
                  
                  Renders an UTF-8 string onto the image. The text will be rendered from the specified basepoint: let basepoint = Point(x: 20, y: 200) image.renderText( “SwiftGD”, from: basepoint, fontList: [“SFCompact”], color: .red, size: 100, angle: .degrees(90) ) DeclarationParameterstextThe string to render. fromThe basepoint (roughly the lower left corner) of the first letter. fontListA list of font filenames to look for. The first match will be used. colorThe font color. sizeThe height of the font in typographical points (pt). angleThe angle to rotate the rendered text from the basepoint perspective. Positive angles rotate clockwise. Return ValueThe rendered text bounding box. You can use this output to render the text off-image first, and then render it again, on the image, with the bounding box information (e.g., to center-align the text). 
- 
                  
                  
- 
                  
                  
- 
                  
                  
- 
                  
                  
- 
                  
                  
- 
                  
                  
- 
                  
                  
- 
                  
                  
- 
                  
                  DeclarationSwift public func flip(_ mode: FlipMode)
- 
                  
                  DeclarationSwift public func pixelate(blockSize: Int)
- 
                  
                  DeclarationSwift public func blur(radius: Int)
- 
                  
                  DeclarationSwift public func colorize(using color: Color)
- 
                  
                  DeclarationSwift public func desaturate()
- 
                  
                  Reduces Imageto an indexed palette of colors from larger color spaces. IndexImages only make sense with 2 or more colors, and willthrownonsense valuesDeclarationSwift public func reduceColors(max numberOfColors: Int, shouldDither: Bool = true) throwsParametersnumberOfColorsmaximum number of colors shouldDithertrue will apply GD’s internal dithering algorithm 
- 
                  
                  DeclarationSwift deinit
- 
                  
                  DeclarationSwift public convenience init?(url: URL)
- 
                  
                  DeclarationSwift @discardableResult public func write(to url: URL, quality: Int = 100, allowOverwrite: Bool = false) -> Bool
- 
                  
                  Initializes a new Imageinstance from given image data in specified raster format. IfDefaultImportableRasterFormatis omitted, all supported raster formats will be evaluated.DeclarationSwift public convenience init(data: Data, as format: ImportableFormat = .any) throwsParametersdataThe image data rasterFormatThe raster format of image data (e.g. png, webp, …). Defaults to .any
- 
                  
                  Exports the image as Dataobject in specified raster format.DeclarationSwift public func export(as format: ExportableFormat = .png) throws -> DataParametersformatThe raster format of the returning image data (e.g. as jpg, png, …). Defaults to .pngReturn ValueThe image data 
 View on GitHub
            View on GitHub
           GDImage Class Reference
      GDImage Class Reference