Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeArtPictureProperties

Namespace OfficeIMO.Drawing.Binary
Assembly OfficeIMO.Core
Source revision 45ddf07f0b84 with working tree changes
Modifiers sealed

Decodes OfficeArt picture-frame properties that can be shared by binary Office consumers.

Inheritance

  • Object
  • OfficeArtPictureProperties

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public static OfficeArtPictureProperties Decode(IReadOnlyList<OfficeArtProperty>? properties) #
Returns: OfficeArtPictureProperties

Decodes picture-frame properties from an OfficeArt property table.

Parameters

properties System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.Binary.OfficeArtProperty>? requiredposition: 0

Properties

public IReadOnlyList<OfficeArtProperty> Properties { get; } #

Gets the source property entries.

public Int32? CropFromTopRaw { get; } #

Gets the raw signed 16.16 top crop value.

public Int32? CropFromBottomRaw { get; } #

Gets the raw signed 16.16 bottom crop value.

public Int32? CropFromLeftRaw { get; } #

Gets the raw signed 16.16 left crop value.

public Int32? CropFromRightRaw { get; } #

Gets the raw signed 16.16 right crop value.

public OfficeArtColorReference? TransparentColor { get; } #

Gets the color treated as transparent, when explicitly present.

public Int32? ContrastRaw { get; } #

Gets the raw signed picture-contrast value, where 0x00010000 means unchanged.

public Int32? BrightnessRaw { get; } #

Gets the raw signed picture-brightness value in the range -0x8000 through 0x8000.

public Double? BrightnessAdjustment { get; } #

Gets brightness adjustment from -1 through 1 by scaling the signed OfficeArt endpoint range of -0x8000 through 0x8000.

public Double? ContrastAdjustment { get; } #

Gets contrast adjustment from -1 through 1. Values through 0x10000 scale toward minimum contrast; larger multipliers scale asymptotically toward maximum contrast.

public OfficeArtColorReference? RecolorColor { get; } #

Gets the picture recolor color, when explicitly present.

public Boolean? Grayscale { get; } #

Gets explicit grayscale display state, or null when inherited.

public Boolean? BiLevel { get; } #

Gets explicit two-color black-and-white display state, or null when inherited.

public Boolean? PreserveGrays { get; } #

Gets whether native color modifications leave source gray values unchanged, or null when inherited.

public Double? CropFromTop { get; } #

Gets the top crop as a fraction of image height.

public Double? CropFromBottom { get; } #

Gets the bottom crop as a fraction of image height.

public Double? CropFromLeft { get; } #

Gets the left crop as a fraction of image width.

public Double? CropFromRight { get; } #

Gets the right crop as a fraction of image width.

public Boolean HasExplicitCrop { get; } #

Gets whether at least one explicit crop property is present.

public Boolean HasCrop { get; } #

Gets whether any edge crops into or out from the source image.

public Boolean HasPictureEffect { get; } #

Gets whether the picture has an explicitly enabled visual effect.