RUBY QUESTION

For general discussion related FlowStone
Post Reply
User avatar
tiffy
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

RUBY QUESTION

Post by tiffy »

HOW TO GET THE MODIFIED (ZOOM, ALPHA, ROTATED) IMAGE FROM THE RUBY COMPONENT AS AN OUTPUT INTO THE SAVE BITMAP MODULE INPUT IN ORDER TO SAVE THE MODIFIED IMAGE?

OR CAN IT ALL BE DONE VIA THE RUBY COMPONENT ALONE?

Schematic is only an example to show what I intend to do. Currently it will not save the modified image as there is no available Ruby component outputs that should feed into the save image module in order to save the modified image.
Attachments
Image Zoom,Rotate,Center with Alpha.fsm
(168.83 KiB) Downloaded 851 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: RUBY QUESTION

Post by tulamide »

You could use the draw-to-bitmap prim. Just connect the view output with a second view input in your RubyEdit and route all drawings to the correct view (wether you're arranging, or you want to draw to a bitmap to save). Keep in mind that you have to calculate the needed size of the new bitmap.
"There lies the dog buried" (German saying translated literally)
Post Reply