Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Is there an easy way to scale a part of the canvas to a certain size in a plug-in? I don't mean changing the canvas size. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Share Posted June 23, 2009 Is there an easy way to scale a part of the canvas to a certain size in a plug-in? I don't mean changing the canvas size. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Is there an easy way to scale a part of the canvas to a certain size in a plug-in? I don't mean changing the canvas size. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Is there an easy way to scale a part of the canvas to a certain size in a plug-in? I don't mean changing the canvas size. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Either do this in SetRenderInfo or the dialog: Convert the surface to a bitmap, use the bitmap constructor with an existing image and dimensions, then convert it back. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Either do this in SetRenderInfo or the dialog: Convert the surface to a bitmap, use the bitmap constructor with an existing image and dimensions, then convert it back. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Either do this in SetRenderInfo or the dialog: Convert the surface to a bitmap, use the bitmap constructor with an existing image and dimensions, then convert it back. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Either do this in SetRenderInfo or the dialog: Convert the surface to a bitmap, use the bitmap constructor with an existing image and dimensions, then convert it back. Quote Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Which would be the fastest? An example would be nice too, I'm not very good at programming yet. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Which would be the fastest? An example would be nice too, I'm not very good at programming yet. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Which would be the fastest? An example would be nice too, I'm not very good at programming yet. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Which would be the fastest? An example would be nice too, I'm not very good at programming yet. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Both pretty much the same, as bottlenecks are usually in I/O, networking and loops. Using dialogs would probably be more future-proof, but requires, well, a dialog. An alternative way would be to copy the pixels manually in your render method loop, eg: dstArgs.Surface[x/2,y/2] = srcArgs.Surface[x,y]; Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Both pretty much the same, as bottlenecks are usually in I/O, networking and loops. Using dialogs would probably be more future-proof, but requires, well, a dialog. An alternative way would be to copy the pixels manually in your render method loop, eg: dstArgs.Surface[x/2,y/2] = srcArgs.Surface[x,y]; Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Both pretty much the same, as bottlenecks are usually in I/O, networking and loops. Using dialogs would probably be more future-proof, but requires, well, a dialog. An alternative way would be to copy the pixels manually in your render method loop, eg: dstArgs.Surface[x/2,y/2] = srcArgs.Surface[x,y]; Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted June 23, 2009 Share Posted June 23, 2009 Both pretty much the same, as bottlenecks are usually in I/O, networking and loops. Using dialogs would probably be more future-proof, but requires, well, a dialog. An alternative way would be to copy the pixels manually in your render method loop, eg: dstArgs.Surface[x/2,y/2] = srcArgs.Surface[x,y]; Quote Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity . And first learn better C# before I go on. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity . And first learn better C# before I go on. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity . And first learn better C# before I go on. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Boude Posted June 23, 2009 Author Share Posted June 23, 2009 Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity . And first learn better C# before I go on. Quote History repeats itself, because nobody was paying attention the first time. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.