# A3DPDFButtonSetIcon

A3DStatus `A3DPDFButtonSetIcon`(A3DPDFButton *pButton, const A3DPDFImage *pImage)
  `A3DStatus` A3DPDFButtonSetIcon(`A3DPDFButton`* pButton, const `A3DPDFImage`* pImage)

  Function to set the icon of a button form field.

  The image is defined from a `A3DPDFImage`object. It is always scaled non-proportionally, which means always adapted and stretched to the size of the field.

  Parameters

  > pButton: The Button object to work with.

  > pImage: The image to store on the button field.

  Returns

  > A3D_SUCCESS in case of success or an error code

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...