Show / Hide Table of Contents

Class Icon

Information about Icons.

Inheritance
System.Object
AbstractStructure
Icon
Namespace: PeNet.Header.Resource
Assembly: PeNet.dll
Syntax
public class Icon : AbstractStructure

Constructors

| Improve this Doc View Source

Icon(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 Source

Id

Declaration
public uint Id { get; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

Size

Declaration
public uint Size { get; }
Property Value
Type Description
System.UInt32

Methods

| Improve this Doc View Source

AsIco()

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.

| Improve this Doc View Source

AsRawSpan()

Byte span of the icon image.

Declaration
public Span<byte> AsRawSpan()
Returns
Type Description
Span<System.Byte>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX