
To export your drawing with a transparent background,
#PAINTCODE RENDER AT ANY SIZE PDF#
Note that the underlay color does not have any effect on the generated source code.Īlso note that this color is used when you export your drawing as a TIFF, PDF or PNG file with background. To change the underlay color of the canvas, simply click on the color well. PaintCode also generates resizing drawing methods that allow you to draw canvas into target rectangle of different size while preserving aspect ratio. IBOutletCollection generated by this image method. You can also set which selector should be called on object that you add to the Of the generated image (if desired) as well as the image rendering mode. These settings allow you to define cap insets More settings will appear when you target iOS. When you choose that the canvas should generate a method that returns an image, Most importantly, you can choose whether the canvas should generate:Ī method that generates an image (UIImage or NSImage) at runtime Using the StyleKit popup button, you can change the StyleKit code generation settings of this canvas. Note that this only works when you have no shapes selected in the canvas. To change the size of the canvas, simply enter the desired dimensions in the appropriate text fields.Īlternatively, you can change the size of the canvas by dragging the edges of the canvas Used when exporting your canvas as an image. Name is used as the name of the generated drawing method. Using the top textfield, you can change the name of the canvas.


The canvas settings will appear in the Inspector: To access the canvas settings, click on the title of your canvas in the workspace.Īlternatively, you can also click on the canvas in the Shapes & Groups browser.
