• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 10546434957

25 Aug 2024 11:09AM UTC coverage: 75.832% (-0.2%) from 75.987%
10546434957

push

github

web-flow
Merge pull request #428 from DomCR/UnknownNonGraphicalObject

Unknown None Graphical Object

4853 of 7047 branches covered (68.87%)

Branch coverage included in aggregate %.

54 of 62 new or added lines in 11 files covered. (87.1%)

69 existing lines in 25 files now uncovered.

19285 of 24784 relevant lines covered (77.81%)

33698.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/src/ACadSharp/Objects/ImageDefinition.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Objects
5
{
6
        /// <summary>
7
        /// Represents a <see cref="ImageDefinition"/> object.
8
        /// </summary>
9
        /// <remarks>
10
        /// Object name <see cref="DxfFileToken.ObjectImageDefinition"/> <br/>
11
        /// Dxf class name <see cref="DxfSubclassMarker.RasterImageDef"/>
12
        /// </remarks>
13
        [DxfName(DxfFileToken.ObjectImageDefinition)]
14
        [DxfSubClass(DxfSubclassMarker.RasterImageDef)]
15
        public class ImageDefinition : NonGraphicalObject
16
        {
17
                /// <inheritdoc/>
UNCOV
18
                public override ObjectType ObjectType => ObjectType.UNLISTED;
×
19

20
                /// <inheritdoc/>
21
                public override string ObjectName => DxfFileToken.ObjectImageDefinition;
7✔
22

23
                /// <inheritdoc/>
UNCOV
24
                public override string SubclassMarker => DxfSubclassMarker.RasterImageDef;
×
25

26
                /// <summary>
27
                /// Class version
28
                /// </summary>
29
                [DxfCodeValue(90)]
30
                public int ClassVersion { get; set; }
77✔
31

32
                /// <summary>
33
                /// File name of image
34
                /// </summary>
35
                [DxfCodeValue(1)]
36
                public string FileName { get; set; }
77✔
37

38
                /// <summary>
39
                /// Image size in pixels
40
                /// </summary>
41
                [DxfCodeValue(10, 20)]
42
                public XY Size { get; set; }
77✔
43

44
                /// <summary>
45
                /// Default size of one pixel in AutoCAD units
46
                /// </summary>
47
                [DxfCodeValue(11, 21)]
48
                public XY DefaultSize { get; set; } = new XY(1, 1);
145✔
49

50
                /// <summary>
51
                /// Image-is-loaded flag.
52
                /// </summary>
53
                [DxfCodeValue(280)]
54
                public bool IsLoaded { get; set; } = false;
152✔
55

56
                /// <summary>
57
                /// Resolution units.
58
                /// </summary>
59
                [DxfCodeValue(281)]
60
                public ResolutionUnit Units { get; set; }
77✔
61
        }
62
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc