Opacity icon

Generating Source Code

You can use your image to generate source code to use in Mac OS X, iOS, and Web applications.

Generating Source Code:

Step 1

Create your image in Opacity.

Step 2

Add a factory by selecting the Image > Add Factory menu item.

Step 3

Change the new factory's Format pop up to Source Code.

Step 4

Choose the language and settings you want.

Step 5

Click the Build button to export your source code.

Step 6

Drag the created source code into Xcode or to your web editing tool.

Not everything can be exported as source code, you will be shown a warning if your image contains objects that aren't able to be converted into source code. Some examples of this are: pixel content, filters for iOS and Web languages, and imported images like PDF and SVG files.

Related Topics

Source Code Format