Show / Hide Table of Contents

Class Icon

Information about Icons.

Inheritance
object
AbstractStructure
Icon
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: PeNet.Header.Resource
Assembly: PeNet.dll
Syntax
public class Icon : AbstractStructure

Constructors

| Edit this page View Source

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

Id

Declaration
public uint Id { get; }
Property Value
Type Description
uint
| Edit this page View Source

Size

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

Methods

| Edit this page 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
byte[]

Bytes of the icon image as .ICO file.

| Edit this page View Source

AsRawSpan()

Byte span of the icon image.

Declaration
public Span<byte> AsRawSpan()
Returns
Type Description
Span<byte>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX