src/providers/Azos.Media/PDF/PdfWriter.cs
/// <summary>
/// Writes PDF image xObject element into file stream
/// </summary>
/// <param name="image">PDF image xObject element</param>
Writes PDF image xObject element into file stream
Writes PDF image xObject element into file stream
internal void WriteXObject(ImageElement image)
    {
      writeBeginObject(image.XObjectId);
      writeBeginDictionary();
      writeDictionaryEntry("/Type", "/XObject");
      writeDictionaryEntry("/Subtype", "/Image");
      writeDictionaryEntry("/Name", image.GetXReference());
      writeDictionaryEntry("/Filter", "/DCTDecode");
      writeDictionaryEntry("/Width", image.OwnWidth);
      writeDictionaryEntry("/Height", image.OwnHeight);
      writeDictionaryEntry("/BitsPerComponent", 8);
      writeDictionaryEntry("/ColorSpace", "/DeviceRGB");
      writeDictionaryEntry("/Length", image.Content.Length);
      writeEndDictionary();
      writeBeginStream();
      writeLineRaw(image.Content);
      writeEndStream();
      writeEndObject();
    }
internal void WriteXObject ( ImageElement image ) { writeBeginObject ( image . XObjectId ) ; writeBeginDictionary ( ) ; writeDictionaryEntry ( " " , " " ) ; writeDictionaryEntry ( " " , " " ) ; writeDictionaryEntry ( " " , image . GetXReference ( ) ) ; writeDictionaryEntry ( " " , " " ) ; writeDictionaryEntry ( " " , image . OwnWidth ) ; writeDictionaryEntry ( " " , image . OwnHeight ) ; writeDictionaryEntry ( " " , 8 ) ; writeDictionaryEntry ( " " , " " ) ; writeDictionaryEntry ( " " , image . Content . Length ) ; writeEndDictionary ( ) ; writeBeginStream ( ) ; writeLineRaw ( image . Content ) ; writeEndStream ( ) ; writeEndObject ( ) ; }
Writes PDF image xObject element into file stream
Writes PDF image xObject element into file stream
image
ImageElement
PDF image xObject element
PDF image xObject element