Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. 救命!!!!!! [modified]

救命!!!!!! [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
graphics
13 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yangaqi
    wrote on last edited by
    #1

    大家好!我在处理从虚拟打印出来的EMF文件时,如果是打印的word。(打印其他文件没问题)在我旋转EMF文件时,图片会消失,图片上如果有表格的话,表格不会消失,文字绝对消失!!!!我旋转是用Matrix来实现的 这到底时什么原因啊!高手来说说,谢谢 ================================================================ sorry ! my english is poor! :sigh: virtual Printer print the EMF file ,if this file print from the word ,when i rotating the emf file ,the pictrue will disappear! my code Like this ......... Matrix mtx; mtx.RotateAt(m_nRotateAnle,PointF((minX+maxX)/2,(minY+maxY)/2),MatrixOrderAppend); graphics->SetTransform(&mtx); ..... graphics->DrawImage(m_pImage,rect,0,0,(float)m_pImage->GetWidth(),(float)m_pImage->GetHeight(),UnitPixel); ........ Why is it part of the disappearance when i rotating it, I do not know

    modified on Tuesday, March 3, 2009 3:08 AM

    C H T 3 Replies Last reply
    0
    • Y yangaqi

      大家好!我在处理从虚拟打印出来的EMF文件时,如果是打印的word。(打印其他文件没问题)在我旋转EMF文件时,图片会消失,图片上如果有表格的话,表格不会消失,文字绝对消失!!!!我旋转是用Matrix来实现的 这到底时什么原因啊!高手来说说,谢谢 ================================================================ sorry ! my english is poor! :sigh: virtual Printer print the EMF file ,if this file print from the word ,when i rotating the emf file ,the pictrue will disappear! my code Like this ......... Matrix mtx; mtx.RotateAt(m_nRotateAnle,PointF((minX+maxX)/2,(minY+maxY)/2),MatrixOrderAppend); graphics->SetTransform(&mtx); ..... graphics->DrawImage(m_pImage,rect,0,0,(float)m_pImage->GetWidth(),(float)m_pImage->GetHeight(),UnitPixel); ........ Why is it part of the disappearance when i rotating it, I do not know

      modified on Tuesday, March 3, 2009 3:08 AM

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      This is an international forum, so please ask your question in english. If you can't do that in english, then I suggest you search for a forum in your language.

      Cédric Moonen Software developer
      Charting control [v1.5] OpenGL game tutorial in C++

      1 Reply Last reply
      0
      • Y yangaqi

        大家好!我在处理从虚拟打印出来的EMF文件时,如果是打印的word。(打印其他文件没问题)在我旋转EMF文件时,图片会消失,图片上如果有表格的话,表格不会消失,文字绝对消失!!!!我旋转是用Matrix来实现的 这到底时什么原因啊!高手来说说,谢谢 ================================================================ sorry ! my english is poor! :sigh: virtual Printer print the EMF file ,if this file print from the word ,when i rotating the emf file ,the pictrue will disappear! my code Like this ......... Matrix mtx; mtx.RotateAt(m_nRotateAnle,PointF((minX+maxX)/2,(minY+maxY)/2),MatrixOrderAppend); graphics->SetTransform(&mtx); ..... graphics->DrawImage(m_pImage,rect,0,0,(float)m_pImage->GetWidth(),(float)m_pImage->GetHeight(),UnitPixel); ........ Why is it part of the disappearance when i rotating it, I do not know

        modified on Tuesday, March 3, 2009 3:08 AM

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Does it your qeustion? Hello everyone! Treatment at my print out from the virtual EMF file, if it is to print the word. (No problem printing other documents) in my rotating EMF file, the picture will disappear, pictures on the table if there is, then, the form will not disappear, the disappearance of language is absolutely!!!! My rotation Matrix are used to achieve the This is why when in the end ah! Master for that thank you Btw You are in the USA but you speak chinese? :-D ----------------------------------------------- Can you show your code? (您可以查看您的代码)

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        E Y CPalliniC 3 Replies Last reply
        0
        • H Hamid Taebi

          Does it your qeustion? Hello everyone! Treatment at my print out from the virtual EMF file, if it is to print the word. (No problem printing other documents) in my rotating EMF file, the picture will disappear, pictures on the table if there is, then, the form will not disappear, the disappearance of language is absolutely!!!! My rotation Matrix are used to achieve the This is why when in the end ah! Master for that thank you Btw You are in the USA but you speak chinese? :-D ----------------------------------------------- Can you show your code? (您可以查看您的代码)

          Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

          E Offline
          E Offline
          Eytukan
          wrote on last edited by
          #4

          So you offer an extra service ? :D Great! How's that Hamid?

          He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

          H 1 Reply Last reply
          0
          • H Hamid Taebi

            Does it your qeustion? Hello everyone! Treatment at my print out from the virtual EMF file, if it is to print the word. (No problem printing other documents) in my rotating EMF file, the picture will disappear, pictures on the table if there is, then, the form will not disappear, the disappearance of language is absolutely!!!! My rotation Matrix are used to achieve the This is why when in the end ah! Master for that thank you Btw You are in the USA but you speak chinese? :-D ----------------------------------------------- Can you show your code? (您可以查看您的代码)

            Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

            Y Offline
            Y Offline
            yangaqi
            wrote on last edited by
            #5

            Like this :sigh: ......... Matrix mtx; mtx.RotateAt(m_nRotateAnle,PointF((minX+maxX)/2,(minY+maxY)/2),MatrixOrderAppend); graphics->SetTransform(&mtx); ..... graphics->DrawImage(m_pImage,rect,0,0,(float)m_pImage->GetWidth(),(float)m_pImage->GetHeight(),UnitPixel); ........

            H 1 Reply Last reply
            0
            • H Hamid Taebi

              Does it your qeustion? Hello everyone! Treatment at my print out from the virtual EMF file, if it is to print the word. (No problem printing other documents) in my rotating EMF file, the picture will disappear, pictures on the table if there is, then, the form will not disappear, the disappearance of language is absolutely!!!! My rotation Matrix are used to achieve the This is why when in the end ah! Master for that thank you Btw You are in the USA but you speak chinese? :-D ----------------------------------------------- Can you show your code? (您可以查看您的代码)

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #6

              Do you understand Chinese? Awesome! :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              In testa che avete, signor di Ceprano?

              H 1 Reply Last reply
              0
              • Y yangaqi

                大家好!我在处理从虚拟打印出来的EMF文件时,如果是打印的word。(打印其他文件没问题)在我旋转EMF文件时,图片会消失,图片上如果有表格的话,表格不会消失,文字绝对消失!!!!我旋转是用Matrix来实现的 这到底时什么原因啊!高手来说说,谢谢 ================================================================ sorry ! my english is poor! :sigh: virtual Printer print the EMF file ,if this file print from the word ,when i rotating the emf file ,the pictrue will disappear! my code Like this ......... Matrix mtx; mtx.RotateAt(m_nRotateAnle,PointF((minX+maxX)/2,(minY+maxY)/2),MatrixOrderAppend); graphics->SetTransform(&mtx); ..... graphics->DrawImage(m_pImage,rect,0,0,(float)m_pImage->GetWidth(),(float)m_pImage->GetHeight(),UnitPixel); ........ Why is it part of the disappearance when i rotating it, I do not know

                modified on Tuesday, March 3, 2009 3:08 AM

                T Offline
                T Offline
                Tal Rashas Guardianship
                wrote on last edited by
                #7

                I am not familiar with this issue, but as a chinese, I'm glad to help you. Do you need some translation?

                Y 1 Reply Last reply
                0
                • Y yangaqi

                  Like this :sigh: ......... Matrix mtx; mtx.RotateAt(m_nRotateAnle,PointF((minX+maxX)/2,(minY+maxY)/2),MatrixOrderAppend); graphics->SetTransform(&mtx); ..... graphics->DrawImage(m_pImage,rect,0,0,(float)m_pImage->GetWidth(),(float)m_pImage->GetHeight(),UnitPixel); ........

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  For your project you can use of GDI+ and use of Image::RotateFlip using of it is easy: Image m_image(L"c:\\123.jpg"); Graphics m_gdi(need to a hdc); m_gdi.DrawImage(&image, 0, 0, m_image.GetWidth(),m_image.GetHeight()); m_image.RotateFlip(Rotate90FlipY); m_gdi.DrawImage(&image, 120, 10, m_image.GetWidth(),m_image.GetHeight()); but did you see MSDN for "Matrix Representation of Transformations" ?

                  Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                  Y 1 Reply Last reply
                  0
                  • CPalliniC CPallini

                    Do you understand Chinese? Awesome! :)

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                    [My articles]

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #9

                    Except english I like two languages Chinese and Italian and I think they are like this: Chinese != Italian (Chinese is very difficult and Italian is easy (of course for me)).you can see <a href="http://www.google.com/url?q=http://en.wikipedia.org/wiki/Mandarin\_Chinese&ei=UvusSfzqM4u4-Qa2hNjYBg&sa=X&oi=spellmeleon\_result&resnum=2&ct=result&cd=1&usg=AFQjCNF2qXPRlDhmCxBvWTinPXDu6FSnVA">Mandarin</a>[<a href="http://www.google.com/url?q=http://en.wikipedia.org/wiki/Mandarin\_Chinese&ei=UvusSfzqM4u4-Qa2hNjYBg&sa=X&oi=spellmeleon\_result&resnum=2&ct=result&cd=1&usg=AFQjCNF2qXPRlDhmCxBvWTinPXDu6FSnVA" target="_blank" title="New Window">^</a>]. :-D

                    Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                    1 Reply Last reply
                    0
                    • E Eytukan

                      So you offer an extra service ? :D Great! How's that Hamid?

                      He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #10

                      I am sure you forgot me because you are not here(if you remember these members were active on this forum toxxct,David Crow,Cedric Mooen,Nibu Babu thomas,...) we spoke together two years ago(my username was WhiteSky)

                      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                      E 1 Reply Last reply
                      0
                      • T Tal Rashas Guardianship

                        I am not familiar with this issue, but as a chinese, I'm glad to help you. Do you need some translation?

                        Y Offline
                        Y Offline
                        yangaqi
                        wrote on last edited by
                        #11

                        thanks! yes. I need ! Writing English too painful for me

                        1 Reply Last reply
                        0
                        • H Hamid Taebi

                          For your project you can use of GDI+ and use of Image::RotateFlip using of it is easy: Image m_image(L"c:\\123.jpg"); Graphics m_gdi(need to a hdc); m_gdi.DrawImage(&image, 0, 0, m_image.GetWidth(),m_image.GetHeight()); m_image.RotateFlip(Rotate90FlipY); m_gdi.DrawImage(&image, 120, 10, m_image.GetWidth(),m_image.GetHeight()); but did you see MSDN for "Matrix Representation of Transformations" ?

                          Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                          Y Offline
                          Y Offline
                          yangaqi
                          wrote on last edited by
                          #12

                          thanks! but i want rotate the EMF at all angle,don't like this.And i can rotate the image but a part of image will Disappear

                          1 Reply Last reply
                          0
                          • H Hamid Taebi

                            I am sure you forgot me because you are not here(if you remember these members were active on this forum toxxct,David Crow,Cedric Mooen,Nibu Babu thomas,...) we spoke together two years ago(my username was WhiteSky)

                            Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                            E Offline
                            E Offline
                            Eytukan
                            wrote on last edited by
                            #13

                            Hamid. wrote:

                            I am sure you forgot me because you are not here

                            Yeah I very well remember them lol and I strongly remember WhiteSky. One fine day I saw a name called WhiteSky that got stuck into the forum forever later. lol Forgot that it's the reference to Hamid. ;) cool.

                            Hamid. wrote:

                            we spoke together two years

                            Exactly! Goddamn the last two years. I went to through hell & back ;). I couldn't even open CP for my own requirements. My job was too hectic.

                            He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups