> For the complete documentation index, see [llms.txt](https://quotes.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quotes.gitbook.io/docs/generating-card.md).

# Generating Card

To generate layout into image you can call the Class SaveLayoutAsImage.java

```java
  SaveLayoutAsImage saveImage = new SaveLayoutAsImage(MainActivity.this);
  saveImage.generateImage(lyt_card, tv_author.getText().toString());
```

by sending the Context to constructor&#x20;

```java
  SaveLayoutAsImage(Your context here);
```

send the LinearLayout and title image to method generateImage

```java
  generateImage(Your LinearLayout, Your Image Title);
```

if you would to change the target folder you can edit in MainActivity.java

```java
  FOLDER_NAME="Quotes";
```
