mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	 1682f0b760
			
		
	
	
		1682f0b760
		
	
	
	
	
		
			
			SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			498 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			498 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Ben Jilks <benjyjilks@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/ByteBuffer.h>
 | |
| 
 | |
| namespace Gfx {
 | |
| 
 | |
| class Bitmap;
 | |
| 
 | |
| class BMPWriter {
 | |
| public:
 | |
|     BMPWriter() = default;
 | |
| 
 | |
|     ByteBuffer dump(const RefPtr<Bitmap>);
 | |
| 
 | |
|     enum class Compression : u32 {
 | |
|         RGB = 0,
 | |
|     };
 | |
| 
 | |
|     inline void set_compression(Compression compression) { m_compression = compression; }
 | |
| 
 | |
| private:
 | |
|     Compression m_compression { Compression::RGB };
 | |
| };
 | |
| 
 | |
| }
 |