Jump to content

Scaling image


Recommended Posts

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.

yhsjjie.png

History repeats itself, because nobody was paying attention the first time.

Link to comment
Share on other sites

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.

yhsjjie.png

History repeats itself, because nobody was paying attention the first time.

Link to comment
Share on other sites

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.

yhsjjie.png

History repeats itself, because nobody was paying attention the first time.

Link to comment
Share on other sites

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];

KaHuc.png
Link to comment
Share on other sites

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];

KaHuc.png
Link to comment
Share on other sites

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];

KaHuc.png
Link to comment
Share on other sites

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];

KaHuc.png
Link to comment
Share on other sites

Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity :P . And first learn better C# before I go on.

yhsjjie.png

History repeats itself, because nobody was paying attention the first time.

Link to comment
Share on other sites

Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity :P . And first learn better C# before I go on.

yhsjjie.png

History repeats itself, because nobody was paying attention the first time.

Link to comment
Share on other sites

Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity :P . And first learn better C# before I go on.

yhsjjie.png

History repeats itself, because nobody was paying attention the first time.

Link to comment
Share on other sites

Again realising that programming is more difficult then I first thought, I give up and will stop bothering you with my stupidity :P . And first learn better C# before I go on.

yhsjjie.png

History repeats itself, because nobody was paying attention the first time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...