Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support image #3

Closed
shps951023 opened this issue Sep 12, 2022 · 4 comments
Closed

Support image #3

shps951023 opened this issue Sep 12, 2022 · 4 comments

Comments

@shps951023
Copy link
Member

No description provided.

@shps951023
Copy link
Member Author

image

                        <w:r w:rsidRPr="00AC4506" w:rsidR="00AC4506">
                            <w:rPr>
                                <w:rFonts w:ascii="SimSun" w:hAnsi="SimSun" />
                                <w:sz w:val="24" />
                            </w:rPr>
                            <w:t></w:t>
                            <w:br />
                            <w:t></w:t>
                            <w:drawing>
                                <wp:inline distT="0" distB="0" distL="0" distR="0" wp14:editId="50D07946">
                                    <wp:extent cx="990000" cy="792000" />
                                    <wp:effectExtent l="0" t="0" r="0" b="0" />
                                    <wp:docPr id="1" name="Picture c27119da-4351-47e5-8e28-24b78953a988" />
                                    <wp:cNvGraphicFramePr>
                                        <a:graphicFrameLocks noChangeAspect="1"
                                            xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" />
                                    </wp:cNvGraphicFramePr>
                                    <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
                                        <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
                                            <pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
                                                <pic:nvPicPr>
                                                    <pic:cNvPr id="0" name="New Bitmap Image3deea634-71e9-45b7-ae70-587795a6dc1b.png" />
                                                    <pic:cNvPicPr />
                                                </pic:nvPicPr>
                                                <pic:blipFill>
                                                    <a:blip r:embed="Re8fa8a30a98849af" cstate="print">
                                                        <a:extLst>
                                                            <a:ext uri="{c9664d4748704447b3af4029bd20f2e3}" />
                                                        </a:extLst>
                                                    </a:blip>
                                                    <a:stretch>
                                                        <a:fillRect />
                                                    </a:stretch>
                                                </pic:blipFill>
                                                <pic:spPr>
                                                    <a:xfrm>
                                                        <a:off x="0" y="0" />
                                                        <a:ext cx="990000" cy="792000" />
                                                    </a:xfrm>
                                                    <a:prstGeom prst="rect">
                                                        <a:avLst />
                                                    </a:prstGeom>
                                                </pic:spPr>
                                            </pic:pic>
                                        </a:graphicData>
                                    </a:graphic>
                                </wp:inline>
                            </w:drawing>
                            <w:br />
                            <w:t></w:t>
                        </w:r>

@shps951023
Copy link
Member Author

        //
        // Summary:
        //     Extent Length
        //     Represents the following attribute in the schema: cx
        [SchemaAttr("cx")]
        public Int64Value? Cx
        {
            get
            {
                return GetAttribute<Int64Value>("Cx");
            }
            set
            {
                SetAttribute(value, "Cx");
            }
        }

@shps951023
Copy link
Member Author

image

@shps951023
Copy link
Member Author

http://polymathprogrammer.com/2009/10/22/english-metric-units-and-open-xml/

Bitmap bm = new Bitmap("yourimage.jpg");
DocumentFormat.OpenXml.Drawing.Extents extents = new DocumentFormat.OpenXml.Drawing.Extents();
extents.Cx = (long)bm.Width * (long)((float)914400 / bm.HorizontalResolution);
extents.Cy = (long)bm.Height * (long)((float)914400 / bm.VerticalResolution);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant