# OHOS::Image - [Overview](#section1667437066165633) - [Summary](#section1743172949165633) - [Public Member Functions](#pub-methods) ## **Overview** **Related Modules:** [Graphic](Graphic.md) **Description:** Represents basic image attributes, including the image type and path. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions

Function

Description

Image ()

A constructor used to create an Image instance. You can use this constructor when a component requires a map.

~Image ()

virtual

A destructor used to delete the Image instance.

GetImageInfo () const

const ImageInfo *

Obtains the image information in an array.

GetPath () const

const char *

Obtains the image path in binary.

GetHeader (ImageHeader &header) const

void

Obtains the basic image information, including the image format, width, and height.

GetSrcType () const

uint8_t

Obtains the image type.

SetSrc (const char *src)

bool

Sets the image path.

SetSrc (const ImageInfo *src)

bool

Sets the image information.

operator new (size_t size)

void *

Overrides the new function.

operator delete (void *p)

void

Overrides the delete function.