Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanDoggie committed Apr 4, 2019
1 parent af6b7a6 commit 4407acf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Doggie/PDFContext/PDFContextImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ extension PDFContext.Page {

func _draw(image: AnyImage, transform: SDTransform, compression: PDFContext.CompressionScheme) {

self.beginTransparencyLayer()
defer { self.endTransparencyLayer() }

let key = image.imageTableKey

let name: String
Expand Down Expand Up @@ -92,10 +95,8 @@ extension PDFContext.Page {
"\(_decimal_round(transform.f))",
]

current_layer.commands += "q\n"
current_layer.commands += "\(_transform.joined(separator: " ")) cm\n"
current_layer.commands += "/\(name) Do\n"
current_layer.commands += "Q\n"
}
}

Expand Down
3 changes: 3 additions & 0 deletions Sources/Doggie/SVGContext/SVGContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ extension SVGContext {

private func _draw(image: SVGImageProtocol, transform: SDTransform, using storageType: ImageRep.MediaType, properties: [ImageRep.PropertyKey : Any]) {

self.beginTransparencyLayer()
defer { self.endTransparencyLayer() }

let key = image.imageTableKey

let id: String
Expand Down

0 comments on commit 4407acf

Please sign in to comment.