Class Icon
Information about Icons.
Namespace: PeNet.Header.Resource
Assembly: PeNet.dll
Syntax
public class Icon : AbstractStructure
Constructors
| Improve this Doc View SourceIcon(IRawFile, Int64, UInt32, UInt32, 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. |
System.Int64 | offset | Offset of the Icon image in the PE file. |
System.UInt32 | size | Size of the Icon image in the PE file. |
System.UInt32 | id | ID of the Icon. |
Resources | parent | Resources parent of the Icon |
Properties
| Improve this Doc View SourceId
Declaration
public uint Id { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Size
Declaration
public uint Size { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
| Improve this Doc 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 |
---|---|
System.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<System.Byte> |