Class Icon
Information about Icons.
Inherited Members
Namespace: PeNet.Header.Resource
Assembly: PeNet.dll
Syntax
public class Icon : AbstractStructure
Constructors
| Edit this page View SourceIcon(IRawFile, long, uint, uint, Resources)
Creates a new Icon instance and sets Size and ID.
Declaration
public Icon(IRawFile peFile, long offset, uint size, uint id, Resources parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IRawFile | peFile | A PE file. |
| long | offset | Offset of the Icon image in the PE file. |
| uint | size | Size of the Icon image in the PE file. |
| uint | id | ID of the Icon. |
| Resources | parent | Resources parent of the Icon |
Properties
| Edit this page View SourceId
Declaration
public uint Id { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Size
Declaration
public uint Size { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
| Edit this page View SourceAsIco()
Adding .ICO-Header to the bytes of the icon image. Reference: https://docs.fileformat.com/image/ico/
Declaration
public byte[]? AsIco()
Returns
| Type | Description |
|---|---|
| byte[] | Bytes of the icon image as .ICO file. |
AsRawSpan()
Byte span of the icon image.
Declaration
public Span<byte> AsRawSpan()
Returns
| Type | Description |
|---|---|
| Span<byte> |