---
title: "LosslessJpeg.WritePatched Method (Stream, Point, Bitmap)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_LosslessJpeg_WritePatched_3_8cd42e51.htm
product: "Graphics Mill"
---

# LosslessJpeg.WritePatched Method (Stream, Point, Bitmap)
 
Patches the image using a given bitmap and writes the result to the specified Stream.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void WritePatched(Stream stream,Point offset,Bitmap bitmap
)
```
 
### Parameters
 
 - stream
     - Type: System.IO.Stream
The Stream to save the result.

 - offset
     - Type: System.Drawing.Point
A Point at which the *bitmap* should be placed. Note, it should be aligned to MCU using the [AlignToMCUSize(Rectangle, JpegAlignToSampleSizeMode)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_LosslessJpeg_AlignToMCUSize_2_196b06b9.htm.md) method.

 - bitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md)
A [Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md) to place at the given position.
   
## See Also

### Reference

- [LosslessJpeg Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_LosslessJpeg.htm.md)
- [WritePatched Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_LosslessJpeg_WritePatched.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)

### Manual

- [Applying Lossless JPEG Transforms](https://www.graphicsmill.com/docs/gm/applying-lossless-jpeg-transforms.htm.md)
