fxruby 1.6.50 → 1.6.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/binary.yml +17 -0
- data/.github/workflows/ci.yml +13 -2
- data/Gemfile +7 -2
- data/History.md +14 -0
- data/Rakefile +28 -46
- data/doap.rdf +2 -2
- data/docs/Fox/Canvas/CanvasError.html +2 -2
- data/docs/Fox/Canvas/CircleShape.html +2 -2
- data/docs/Fox/Canvas/ImageShape.html +2 -2
- data/docs/Fox/Canvas/LineShape.html +2 -2
- data/docs/Fox/Canvas/PolygonShape.html +2 -2
- data/docs/Fox/Canvas/RectangleShape.html +2 -2
- data/docs/Fox/Canvas/SelectionPolicy.html +2 -2
- data/docs/Fox/Canvas/Shape.html +3 -3
- data/docs/Fox/Canvas/ShapeCanvas.html +2 -2
- data/docs/Fox/Canvas/ShapeGroup.html +2 -2
- data/docs/Fox/Canvas/SingleSelectionPolicy.html +2 -2
- data/docs/Fox/Canvas/TextShape.html +7 -9
- data/docs/Fox/Canvas.html +3 -3
- data/docs/Fox/FTNonModal.html +2 -2
- data/docs/Fox/FX4Splitter.html +41 -41
- data/docs/Fox/FX7Segment.html +5 -5
- data/docs/Fox/FXAccelTable.html +2 -2
- data/docs/Fox/FXApp.html +54 -54
- data/docs/Fox/FXArc.html +2 -2
- data/docs/Fox/FXArrowButton.html +22 -22
- data/docs/Fox/FXBMPIcon.html +10 -10
- data/docs/Fox/FXBMPImage.html +9 -9
- data/docs/Fox/FXBitmap.html +7 -7
- data/docs/Fox/FXBitmapFrame.html +3 -3
- data/docs/Fox/FXBitmapView.html +4 -4
- data/docs/Fox/FXButton.html +21 -21
- data/docs/Fox/FXCURCursor.html +2 -2
- data/docs/Fox/FXCalendar.html +4 -4
- data/docs/Fox/FXCanvas.html +7 -7
- data/docs/Fox/FXCheckButton.html +13 -13
- data/docs/Fox/FXChoiceBox.html +20 -20
- data/docs/Fox/FXColor.html +2 -2
- data/docs/Fox/FXColorBar.html +10 -10
- data/docs/Fox/FXColorDialog.html +7 -7
- data/docs/Fox/FXColorItem.html +2 -2
- data/docs/Fox/FXColorList.html +2 -2
- data/docs/Fox/FXColorRing.html +7 -7
- data/docs/Fox/FXColorSelector.html +36 -36
- data/docs/Fox/FXColorWell.html +19 -19
- data/docs/Fox/FXColorWheel.html +20 -20
- data/docs/Fox/FXComboBox.html +31 -31
- data/docs/Fox/FXComboTableItem.html +2 -2
- data/docs/Fox/FXCommand.html +2 -2
- data/docs/Fox/FXComposite.html +5 -5
- data/docs/Fox/FXCursor.html +14 -14
- data/docs/Fox/FXDC.html +207 -207
- data/docs/Fox/FXDCPrint.html +2 -2
- data/docs/Fox/FXDCWindow.html +2 -2
- data/docs/Fox/FXDataTarget.html +8 -8
- data/docs/Fox/FXDebugTarget.html +3 -3
- data/docs/Fox/FXDelegator.html +2 -2
- data/docs/Fox/FXDial.html +28 -28
- data/docs/Fox/FXDialogBox.html +5 -5
- data/docs/Fox/FXDict.html +2 -2
- data/docs/Fox/FXDirBox.html +7 -7
- data/docs/Fox/FXDirDialog.html +2 -2
- data/docs/Fox/FXDirItem.html +2 -2
- data/docs/Fox/FXDirList.html +19 -19
- data/docs/Fox/FXDirSelector.html +15 -15
- data/docs/Fox/FXDockBar.html +27 -27
- data/docs/Fox/FXDockHandler.html +5 -5
- data/docs/Fox/FXDockSite.html +14 -14
- data/docs/Fox/FXDockTitle.html +2 -2
- data/docs/Fox/FXDocument.html +5 -5
- data/docs/Fox/FXDragCorner.html +2 -2
- data/docs/Fox/FXDrawable.html +5 -5
- data/docs/Fox/FXDriveBox.html +5 -5
- data/docs/Fox/FXEvent.html +62 -60
- data/docs/Fox/FXExtentd.html +2 -2
- data/docs/Fox/FXExtentf.html +2 -2
- data/docs/Fox/FXFileAssoc.html +2 -2
- data/docs/Fox/FXFileDialog.html +32 -32
- data/docs/Fox/FXFileDict.html +7 -7
- data/docs/Fox/FXFileItem.html +2 -2
- data/docs/Fox/FXFileList.html +27 -27
- data/docs/Fox/FXFileSelector.html +35 -35
- data/docs/Fox/FXFileStream.html +6 -6
- data/docs/Fox/FXFoldingItem.html +2 -2
- data/docs/Fox/FXFoldingList.html +41 -41
- data/docs/Fox/FXFont.html +172 -170
- data/docs/Fox/FXFontDesc.html +2 -2
- data/docs/Fox/FXFontDialog.html +2 -2
- data/docs/Fox/FXFontSelector.html +14 -14
- data/docs/Fox/FXFrame.html +4 -4
- data/docs/Fox/FXGIFCursor.html +2 -2
- data/docs/Fox/FXGIFIcon.html +10 -10
- data/docs/Fox/FXGIFImage.html +9 -9
- data/docs/Fox/FXGLCanvas.html +2 -2
- data/docs/Fox/FXGLCone.html +2 -2
- data/docs/Fox/FXGLContext.html +2 -2
- data/docs/Fox/FXGLCube.html +2 -2
- data/docs/Fox/FXGLCylinder.html +2 -2
- data/docs/Fox/FXGLGroup.html +2 -2
- data/docs/Fox/FXGLLine.html +2 -2
- data/docs/Fox/FXGLObject.html +14 -14
- data/docs/Fox/FXGLPoint.html +2 -2
- data/docs/Fox/FXGLShape.html +26 -26
- data/docs/Fox/FXGLSphere.html +2 -2
- data/docs/Fox/FXGLViewer.html +74 -74
- data/docs/Fox/FXGLVisual.html +2 -2
- data/docs/Fox/FXGradient.html +2 -2
- data/docs/Fox/FXGradientBar.html +34 -34
- data/docs/Fox/FXGroupBox.html +7 -7
- data/docs/Fox/FXHeader.html +20 -20
- data/docs/Fox/FXHeaderItem.html +19 -19
- data/docs/Fox/FXHiliteStyle.html +2 -2
- data/docs/Fox/FXHorizontalFrame.html +15 -15
- data/docs/Fox/FXHorizontalSeparator.html +13 -13
- data/docs/Fox/FXICOIcon.html +10 -10
- data/docs/Fox/FXICOImage.html +9 -9
- data/docs/Fox/FXIcon.html +10 -10
- data/docs/Fox/FXIconDict.html +2 -2
- data/docs/Fox/FXIconItem.html +2 -2
- data/docs/Fox/FXIconList.html +43 -43
- data/docs/Fox/FXIconSource.html +2 -2
- data/docs/Fox/FXId.html +2 -2
- data/docs/Fox/FXImage.html +120 -297
- data/docs/Fox/FXImageFrame.html +14 -14
- data/docs/Fox/FXImageView.html +13 -13
- data/docs/Fox/FXInputDialog.html +7 -7
- data/docs/Fox/FXIrb.html +2 -2
- data/docs/Fox/FXJPGIcon.html +11 -11
- data/docs/Fox/FXJPGImage.html +10 -10
- data/docs/Fox/FXKnob.html +17 -17
- data/docs/Fox/FXLabel.html +25 -25
- data/docs/Fox/FXLight.html +2 -2
- data/docs/Fox/FXList.html +29 -29
- data/docs/Fox/FXListBox.html +8 -8
- data/docs/Fox/FXListItem.html +2 -2
- data/docs/Fox/FXMDIChild.html +21 -21
- data/docs/Fox/FXMDIClient.html +224 -28
- data/docs/Fox/FXMDIDeleteButton.html +2 -2
- data/docs/Fox/FXMDIMaximizeButton.html +2 -2
- data/docs/Fox/FXMDIMenu.html +2 -2
- data/docs/Fox/FXMDIMinimizeButton.html +2 -2
- data/docs/Fox/FXMDIRestoreButton.html +2 -2
- data/docs/Fox/FXMDIWindowButton.html +2 -2
- data/docs/Fox/FXMainWindow.html +4 -4
- data/docs/Fox/FXMaterial.html +2 -2
- data/docs/Fox/FXMatrix.html +5 -5
- data/docs/Fox/FXMemoryBuffer.html +4 -4
- data/docs/Fox/FXMemoryStream.html +8 -8
- data/docs/Fox/FXMenuBar.html +2 -2
- data/docs/Fox/FXMenuButton.html +24 -24
- data/docs/Fox/FXMenuCaption.html +5 -5
- data/docs/Fox/FXMenuCascade.html +2 -2
- data/docs/Fox/FXMenuCheck.html +4 -4
- data/docs/Fox/FXMenuCommand.html +4 -4
- data/docs/Fox/FXMenuPane.html +2 -2
- data/docs/Fox/FXMenuRadio.html +4 -4
- data/docs/Fox/FXMenuSeparator.html +2 -2
- data/docs/Fox/FXMenuTitle.html +7 -7
- data/docs/Fox/FXMessageBox.html +21 -21
- data/docs/Fox/FXObject.html +2 -2
- data/docs/Fox/FXOption.html +8 -8
- data/docs/Fox/FXOptionMenu.html +8 -8
- data/docs/Fox/FXPCXIcon.html +10 -10
- data/docs/Fox/FXPCXImage.html +9 -9
- data/docs/Fox/FXPNGIcon.html +10 -10
- data/docs/Fox/FXPNGImage.html +9 -9
- data/docs/Fox/FXPPMIcon.html +10 -10
- data/docs/Fox/FXPPMImage.html +9 -9
- data/docs/Fox/FXPSBounds.html +2 -2
- data/docs/Fox/FXPacker.html +2 -2
- data/docs/Fox/FXPicker.html +5 -5
- data/docs/Fox/FXPopup.html +6 -6
- data/docs/Fox/FXPrintDialog.html +23 -23
- data/docs/Fox/FXPrinter.html +22 -22
- data/docs/Fox/FXProgressBar.html +8 -8
- data/docs/Fox/FXProgressDialog.html +6 -6
- data/docs/Fox/FXPseudoKeyboard.html +2 -2
- data/docs/Fox/FXPseudoMouse.html +2 -2
- data/docs/Fox/FXPseudoTarget.html +2 -2
- data/docs/Fox/FXQuatd.html +19 -19
- data/docs/Fox/FXQuatf.html +24 -24
- data/docs/Fox/FXRGBIcon.html +10 -10
- data/docs/Fox/FXRGBImage.html +9 -9
- data/docs/Fox/FXRadioButton.html +12 -12
- data/docs/Fox/FXRanged.html +2 -2
- data/docs/Fox/FXRangef.html +2 -2
- data/docs/Fox/FXRealSlider.html +40 -40
- data/docs/Fox/FXRealSpinner.html +32 -32
- data/docs/Fox/FXRecentFiles.html +17 -17
- data/docs/Fox/FXRectangle.html +15 -15
- data/docs/Fox/FXRegion.html +2 -2
- data/docs/Fox/FXRegistry.html +2 -2
- data/docs/Fox/FXReplaceDialog.html +29 -29
- data/docs/Fox/FXRootWindow.html +5 -5
- data/docs/Fox/FXRuler.html +31 -31
- data/docs/Fox/FXRulerView.html +2 -2
- data/docs/Fox/FXScintilla.html +9116 -2763
- data/docs/Fox/FXScrollArea.html +21 -21
- data/docs/Fox/FXScrollBar.html +31 -31
- data/docs/Fox/FXScrollCorner.html +2 -2
- data/docs/Fox/FXScrollPane.html +6 -6
- data/docs/Fox/FXScrollWindow.html +9 -9
- data/docs/Fox/FXSearchDialog.html +11 -11
- data/docs/Fox/FXSegment.html +2 -2
- data/docs/Fox/FXSeparator.html +7 -7
- data/docs/Fox/FXSettings.html +56 -56
- data/docs/Fox/FXShell.html +2 -2
- data/docs/Fox/FXShutter.html +24 -24
- data/docs/Fox/FXShutterItem.html +19 -19
- data/docs/Fox/FXSize.html +12 -12
- data/docs/Fox/FXSlider.html +40 -40
- data/docs/Fox/FXSphered.html +2 -2
- data/docs/Fox/FXSpheref.html +2 -2
- data/docs/Fox/FXSpinner.html +31 -31
- data/docs/Fox/FXSplashScreen.html +3 -3
- data/docs/Fox/FXSplashWindow.html +7 -7
- data/docs/Fox/FXSplitter.html +22 -22
- data/docs/Fox/FXSpring.html +17 -17
- data/docs/Fox/FXStatusBar.html +17 -17
- data/docs/Fox/FXStatusLine.html +8 -8
- data/docs/Fox/FXStream.html +26 -26
- data/docs/Fox/FXStreamAllocError.html +2 -2
- data/docs/Fox/FXStreamEndError.html +2 -2
- data/docs/Fox/FXStreamError.html +2 -2
- data/docs/Fox/FXStreamFailureError.html +2 -2
- data/docs/Fox/FXStreamFormatError.html +2 -2
- data/docs/Fox/FXStreamFullError.html +2 -2
- data/docs/Fox/FXStreamNoReadError.html +2 -2
- data/docs/Fox/FXStreamNoWriteError.html +2 -2
- data/docs/Fox/FXStreamUnknownError.html +2 -2
- data/docs/Fox/FXStringDict.html +2 -2
- data/docs/Fox/FXSwitcher.html +30 -30
- data/docs/Fox/FXTGAIcon.html +10 -10
- data/docs/Fox/FXTGAImage.html +9 -9
- data/docs/Fox/FXTIFIcon.html +10 -10
- data/docs/Fox/FXTIFImage.html +9 -9
- data/docs/Fox/FXTabBar.html +37 -37
- data/docs/Fox/FXTabBook.html +15 -15
- data/docs/Fox/FXTabItem.html +27 -27
- data/docs/Fox/FXTable.html +89 -89
- data/docs/Fox/FXTableItem.html +6 -6
- data/docs/Fox/FXTablePos.html +2 -2
- data/docs/Fox/FXTableRange.html +2 -2
- data/docs/Fox/FXText.html +115 -115
- data/docs/Fox/FXTextChange.html +2 -2
- data/docs/Fox/FXTextField.html +55 -55
- data/docs/Fox/FXToggleButton.html +31 -31
- data/docs/Fox/FXToolBar.html +15 -15
- data/docs/Fox/FXToolBarGrip.html +14 -14
- data/docs/Fox/FXToolBarShell.html +11 -11
- data/docs/Fox/FXToolBarTab.html +21 -21
- data/docs/Fox/FXToolTip.html +12 -10
- data/docs/Fox/FXTopWindow.html +34 -34
- data/docs/Fox/FXTranslator.html +2 -2
- data/docs/Fox/FXTreeItem.html +2 -2
- data/docs/Fox/FXTreeList.html +41 -41
- data/docs/Fox/FXTreeListBox.html +23 -23
- data/docs/Fox/FXTriStateButton.html +21 -21
- data/docs/Fox/FXUndoList.html +3 -3
- data/docs/Fox/FXVec2d.html +2 -2
- data/docs/Fox/FXVec2f.html +2 -2
- data/docs/Fox/FXVec3d.html +2 -2
- data/docs/Fox/FXVec3f.html +2 -2
- data/docs/Fox/FXVec4d.html +2 -2
- data/docs/Fox/FXVec4f.html +2 -2
- data/docs/Fox/FXVerticalFrame.html +15 -15
- data/docs/Fox/FXVerticalSeparator.html +13 -13
- data/docs/Fox/FXViewport.html +2 -2
- data/docs/Fox/FXVisual.html +24 -24
- data/docs/Fox/FXWindow.html +143 -143
- data/docs/Fox/FXWizard.html +5 -5
- data/docs/Fox/FXXBMIcon.html +11 -11
- data/docs/Fox/FXXBMImage.html +10 -10
- data/docs/Fox/FXXPMIcon.html +10 -10
- data/docs/Fox/FXXPMImage.html +9 -9
- data/docs/Fox/NotifyHeader.html +2 -2
- data/docs/Fox/SCNotification.html +2 -2
- data/docs/Fox/TextRange.html +2 -2
- data/docs/Fox.html +89 -89
- data/docs/IRB.html +2 -2
- data/docs/Responder.html +2 -2
- data/docs/Responder2.html +2 -2
- data/docs/_index.html +2 -2
- data/docs/css/style.css +2 -15
- data/docs/file.History.html +1432 -842
- data/docs/file.README.html +9 -9
- data/docs/index.html +94 -53
- data/docs/js/app.js +91 -40
- data/docs/js/full_list.js +22 -20
- data/docs/method_list.html +2854 -2286
- data/docs/top-level-namespace.html +2 -2
- data/examples/canvasdemo.rb +4 -4
- data/examples/iconlist.rb +79 -4
- data/examples/inputs.rb +1 -1
- data/examples/rmagick.rb +9 -9
- data/ext/fox16_c/FXRbApp.cpp +2 -1
- data/ext/fox16_c/FXRbDataTarget.cpp +1 -0
- data/ext/fox16_c/FXRbGLViewer.cpp +1 -0
- data/ext/fox16_c/FXRbObjRegistry.cpp +12 -5
- data/ext/fox16_c/FXRuby.cpp +57 -37
- data/ext/fox16_c/core_wrap.cpp +2593 -2155
- data/ext/fox16_c/dc_wrap.cpp +1033 -707
- data/ext/fox16_c/dialogs_wrap.cpp +1865 -1513
- data/ext/fox16_c/extconf.rb +11 -8
- data/ext/fox16_c/frames_wrap.cpp +3257 -2876
- data/ext/fox16_c/fx3d_wrap.cpp +2170 -1780
- data/ext/fox16_c/gvl_wrappers.cpp +1 -0
- data/ext/fox16_c/iconlist_wrap.cpp +1209 -882
- data/ext/fox16_c/icons_wrap.cpp +1132 -775
- data/ext/fox16_c/image_wrap.cpp +1116 -756
- data/ext/fox16_c/impl.cpp +1 -0
- data/ext/fox16_c/include/FXRbDCWindow.h +1 -1
- data/ext/fox16_c/include/FXRuby.h +6 -6
- data/ext/fox16_c/label_wrap.cpp +1702 -1354
- data/ext/fox16_c/layout_wrap.cpp +1752 -1392
- data/ext/fox16_c/list_wrap.cpp +899 -572
- data/ext/fox16_c/make_impl.rb +1 -0
- data/ext/fox16_c/markfuncs.cpp +1 -0
- data/ext/fox16_c/mdi_wrap.cpp +1220 -881
- data/ext/fox16_c/menu_wrap.cpp +1402 -1057
- data/ext/fox16_c/scintilla_wrap.cpp +658 -337
- data/ext/fox16_c/swigruby.h +262 -119
- data/ext/fox16_c/table_wrap.cpp +1064 -741
- data/ext/fox16_c/text_wrap.cpp +1062 -741
- data/ext/fox16_c/treelist_wrap.cpp +1522 -1189
- data/ext/fox16_c/ui_wrap.cpp +3610 -3216
- data/ext/fox16_c/unregisterOwnedObjects.cpp +1 -0
- data/fxruby.gemspec +6 -1
- data/lib/fox16/canvas.rb +1 -1
- data/lib/fox16/core.rb +97 -26
- data/lib/fox16/undolist.rb +32 -32
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FXApp.rb +12 -0
- data/rdoc-sources/FXFont.rb +2 -0
- data/rdoc-sources/FXMDIClient.rb +15 -0
- data/scripts/iface.rb +1 -0
- data/swig-interfaces/FXScintilla.i +1 -1
- data/swig-interfaces/FXText.i +1 -1
- data/swig-interfaces/freefuncs.i +1 -0
- data/swig-interfaces/ruby-typemaps.i +19 -19
- data/test/TC_FXBMPImage.rb +1 -1
- data/test/TC_FXDC.rb +24 -0
- data/test/TC_FXMat4f.rb +23 -14
- data/test/TC_FXSize.rb +8 -4
- data/test/TS_All.rb +4 -0
- data.tar.gz.sig +0 -0
- metadata +18 -15
- metadata.gz.sig +0 -0
data/docs/Fox/FXImage.html
CHANGED
|
@@ -112,32 +112,32 @@
|
|
|
112
112
|
|
|
113
113
|
<p>An Image is a rectangular array of pixels. It supports two representations of these pixels: a client-side pixel buffer which is stored as an array of FXColor, and a server-side pixmap which is stored in an organization directly compatible with the screen, for fast drawing onto the device. The server-side representation is not directly accessible from the current process as it lives in the process of the X Server or GDI.</p>
|
|
114
114
|
|
|
115
|
-
<h3 id="
|
|
116
|
-
<dl class="rdoc-list note-list"><dt><code>IMAGE_KEEP</code>
|
|
115
|
+
<h3 id="image-rendering-hints">Image rendering hints</h3>
|
|
116
|
+
<dl class="rdoc-list note-list"><dt><code>IMAGE_KEEP</code></dt>
|
|
117
117
|
<dd>
|
|
118
118
|
<p>Keep pixel data in client. By default, FOX discards of the client-side pixel data for an image after you call create() for that image. When the <code>IMAGE_KEEP</code> option is set for FXImage (or one of its subclasses), the client-side buffer is maintained. You will typically want to set this option if you intend to do repeated re-rendering of the image after it has been created.</p>
|
|
119
|
-
</dd><dt><code>IMAGE_OWNED</code>
|
|
119
|
+
</dd><dt><code>IMAGE_OWNED</code></dt>
|
|
120
120
|
<dd>
|
|
121
121
|
<p>If <code>IMAGE_OWNED</code> is set, the image pixel data is copied into the image. If <code>IMAGE_OWNED</code> is not set, a image pixel string is directly used as memory buffer of the image, without copying the data. If pixel data is given as an Array instead of a string, data is copied in any case.</p>
|
|
122
|
-
</dd><dt><code>IMAGE_DITHER</code>
|
|
122
|
+
</dd><dt><code>IMAGE_DITHER</code></dt>
|
|
123
123
|
<dd>
|
|
124
124
|
<p>Dither image to look better</p>
|
|
125
|
-
</dd><dt><code>IMAGE_NEAREST</code>
|
|
125
|
+
</dd><dt><code>IMAGE_NEAREST</code></dt>
|
|
126
126
|
<dd>
|
|
127
127
|
<p>Turn off dithering and map to nearest color</p>
|
|
128
|
-
</dd><dt><code>IMAGE_OPAQUE</code>
|
|
128
|
+
</dd><dt><code>IMAGE_OPAQUE</code></dt>
|
|
129
129
|
<dd>
|
|
130
130
|
<p>Force opaque background</p>
|
|
131
|
-
</dd><dt><code>IMAGE_ALPHACOLOR</code>
|
|
131
|
+
</dd><dt><code>IMAGE_ALPHACOLOR</code></dt>
|
|
132
132
|
<dd>
|
|
133
133
|
<p>By default, FOX will use the transparency color obtained from the image file as the transparency (alpha) color. If you pass the <code>IMAGE_ALPHACOLOR</code> flag, the user-specified transparency color will be used instead.</p>
|
|
134
|
-
</dd><dt><code>IMAGE_SHMI</code>
|
|
134
|
+
</dd><dt><code>IMAGE_SHMI</code></dt>
|
|
135
135
|
<dd>
|
|
136
136
|
<p>Using shared memory image</p>
|
|
137
|
-
</dd><dt><code>IMAGE_SHMP</code>
|
|
137
|
+
</dd><dt><code>IMAGE_SHMP</code></dt>
|
|
138
138
|
<dd>
|
|
139
139
|
<p>Using shared memory pixmap</p>
|
|
140
|
-
</dd><dt><code>IMAGE_ALPHAGUESS</code>
|
|
140
|
+
</dd><dt><code>IMAGE_ALPHAGUESS</code></dt>
|
|
141
141
|
<dd>
|
|
142
142
|
<p>Guess transparency color from corners</p>
|
|
143
143
|
</dd></dl>
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
<span class="summary_desc"><div class='inline'><dl class="rdoc-list label-list"><dt>deprecated
|
|
184
|
+
<span class="summary_desc"><div class='inline'><dl class="rdoc-list label-list"><dt>deprecated</dt>
|
|
185
185
|
<dd>
|
|
186
186
|
<p>Pixel data <span class='object_link'><a href="FXMemoryBuffer.html" title="Fox::FXMemoryBuffer (class)">FXMemoryBuffer</a></span>.</p>
|
|
187
187
|
</dd></dl>
|
|
@@ -507,30 +507,6 @@
|
|
|
507
507
|
|
|
508
508
|
|
|
509
509
|
|
|
510
|
-
<span class="summary_desc"><div class='inline'>
|
|
511
|
-
<p>Create an image.</p>
|
|
512
|
-
</div></span>
|
|
513
|
-
|
|
514
|
-
</li>
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
<li class="public ">
|
|
518
|
-
<span class="summary_signature">
|
|
519
|
-
|
|
520
|
-
<a href="#initialize_without_data_string-instance_method" title="#initialize_without_data_string (instance method)">#<strong>initialize_without_data_string</strong> ⇒ FXImage </a>
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
</span>
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
510
|
<span class="summary_desc"><div class='inline'>
|
|
535
511
|
<p>Create an image.</p>
|
|
536
512
|
</div></span>
|
|
@@ -795,30 +771,6 @@
|
|
|
795
771
|
|
|
796
772
|
|
|
797
773
|
|
|
798
|
-
<span class="summary_desc"><div class='inline'>
|
|
799
|
-
<p>Populate the image with new pixel data of the same size or of a new size.</p>
|
|
800
|
-
</div></span>
|
|
801
|
-
|
|
802
|
-
</li>
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
<li class="public ">
|
|
806
|
-
<span class="summary_signature">
|
|
807
|
-
|
|
808
|
-
<a href="#setPixels_without_data_string-instance_method" title="#setPixels_without_data_string (instance method)">#<strong>setPixels_without_data_string</strong> ⇒ Object </a>
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
</span>
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
774
|
<span class="summary_desc"><div class='inline'>
|
|
823
775
|
<p>Populate the image with new pixel data of the same size or of a new size.</p>
|
|
824
776
|
</div></span>
|
|
@@ -951,20 +903,20 @@
|
|
|
951
903
|
|
|
952
904
|
<p>Create an image. If a client-side pixel buffer has been specified, the image owns the pixel buffer. If the <code>IMAGE_OWNED</code> flag is set but a <code>nil</code> pixel buffer is passed, a pixel buffer will be automatically created and will be owned by the image. The flags <code>IMAGE_SHMI</code> and <code>IMAGE_SHMP</code> may be specified for large images to instruct <span class='object_link'><a href="#render-instance_method" title="Fox::FXImage#render (method)">#render</a></span> to use shared memory to communicate with the server.</p>
|
|
953
905
|
|
|
954
|
-
<h4 id="
|
|
955
|
-
<dl class="rdoc-list note-list"><dt><code>a</code>
|
|
906
|
+
<h4 id="parameters">Parameters:</h4>
|
|
907
|
+
<dl class="rdoc-list note-list"><dt><code>a</code></dt>
|
|
956
908
|
<dd>
|
|
957
909
|
<p>an application instance <span class='object_link'><a href="FXApp.html" title="Fox::FXApp (class)">Fox::FXApp</a></span></p>
|
|
958
|
-
</dd><dt><code>pixels</code>
|
|
910
|
+
</dd><dt><code>pixels</code></dt>
|
|
959
911
|
<dd>
|
|
960
912
|
<p>pixels [Array of FXColor values or string of raw [RGBA] values]</p>
|
|
961
|
-
</dd><dt><code>opts</code>
|
|
913
|
+
</dd><dt><code>opts</code></dt>
|
|
962
914
|
<dd>
|
|
963
915
|
<p>image options [Integer]</p>
|
|
964
|
-
</dd><dt><code>width</code>
|
|
916
|
+
</dd><dt><code>width</code></dt>
|
|
965
917
|
<dd>
|
|
966
918
|
<p>image width [Integer]</p>
|
|
967
|
-
</dd><dt><code>height</code>
|
|
919
|
+
</dd><dt><code>height</code></dt>
|
|
968
920
|
<dd>
|
|
969
921
|
<p>image height [Integer]</p>
|
|
970
922
|
</dd></dl>
|
|
@@ -1012,7 +964,7 @@
|
|
|
1012
964
|
|
|
1013
965
|
</h3><div class="docstring">
|
|
1014
966
|
<div class="discussion">
|
|
1015
|
-
<dl class="rdoc-list label-list"><dt>deprecated
|
|
967
|
+
<dl class="rdoc-list label-list"><dt>deprecated</dt>
|
|
1016
968
|
<dd>
|
|
1017
969
|
<p>Pixel data <span class='object_link'><a href="FXMemoryBuffer.html" title="Fox::FXMemoryBuffer (class)">Fox::FXMemoryBuffer</a></span></p>
|
|
1018
970
|
</dd></dl>
|
|
@@ -1196,8 +1148,8 @@
|
|
|
1196
1148
|
|
|
1197
1149
|
<p>Blend image over uniform color.</p>
|
|
1198
1150
|
|
|
1199
|
-
<h4 id="
|
|
1200
|
-
<dl class="rdoc-list note-list"><dt><code>color</code>
|
|
1151
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1152
|
+
<dl class="rdoc-list note-list"><dt><code>color</code></dt>
|
|
1201
1153
|
<dd>
|
|
1202
1154
|
<p>the blended color <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1203
1155
|
</dd></dl>
|
|
@@ -1214,10 +1166,10 @@
|
|
|
1214
1166
|
<pre class="lines">
|
|
1215
1167
|
|
|
1216
1168
|
|
|
1217
|
-
|
|
1169
|
+
295</pre>
|
|
1218
1170
|
</td>
|
|
1219
1171
|
<td>
|
|
1220
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1172
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 295</span>
|
|
1221
1173
|
|
|
1222
1174
|
<span class='kw'>def</span> <span class='id identifier rubyid_blend'>blend</span><span class='lparen'>(</span><span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1223
1175
|
</td>
|
|
@@ -1239,20 +1191,20 @@
|
|
|
1239
1191
|
|
|
1240
1192
|
<p>Crop image to given rectangle and then re-render the server-side image from the client-side pixel buffer. This method calls resize() to adjust the client and server side representations. The new image may be smaller or larger than the old one; blank areas are filled with color. There must be at least one pixel of overlap between the old and the new image.</p>
|
|
1241
1193
|
|
|
1242
|
-
<h4 id="
|
|
1243
|
-
<dl class="rdoc-list note-list"><dt><code>x</code>
|
|
1194
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1195
|
+
<dl class="rdoc-list note-list"><dt><code>x</code></dt>
|
|
1244
1196
|
<dd>
|
|
1245
1197
|
<p>x-coordinate for top left corner of the clip rectangle [Integer]</p>
|
|
1246
|
-
</dd><dt><code>y</code>
|
|
1198
|
+
</dd><dt><code>y</code></dt>
|
|
1247
1199
|
<dd>
|
|
1248
1200
|
<p>y-coordinate for top left corner of the clip rectangle [Integer]</p>
|
|
1249
|
-
</dd><dt><code>width</code>
|
|
1201
|
+
</dd><dt><code>width</code></dt>
|
|
1250
1202
|
<dd>
|
|
1251
1203
|
<p>width of the clip rectangle [Integer]</p>
|
|
1252
|
-
</dd><dt><code>height</code>
|
|
1204
|
+
</dd><dt><code>height</code></dt>
|
|
1253
1205
|
<dd>
|
|
1254
1206
|
<p>height of the clip rectangle [Integer]</p>
|
|
1255
|
-
</dd><dt><code>color</code>
|
|
1207
|
+
</dd><dt><code>color</code></dt>
|
|
1256
1208
|
<dd>
|
|
1257
1209
|
<p>fill color for blank areas after crop <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1258
1210
|
</dd></dl>
|
|
@@ -1269,10 +1221,10 @@
|
|
|
1269
1221
|
<pre class="lines">
|
|
1270
1222
|
|
|
1271
1223
|
|
|
1272
|
-
|
|
1224
|
+
213</pre>
|
|
1273
1225
|
</td>
|
|
1274
1226
|
<td>
|
|
1275
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1227
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 213</span>
|
|
1276
1228
|
|
|
1277
1229
|
<span class='kw'>def</span> <span class='id identifier rubyid_crop'>crop</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1278
1230
|
</td>
|
|
@@ -1294,11 +1246,11 @@
|
|
|
1294
1246
|
|
|
1295
1247
|
<p>Fade an image to a certain color by a certain factor. The <em>factor</em> is some integer value between 0 and 255 inclusive, where a factor of 255 indicates no fading and a factor of zero indicates that the image is completely faded to the fade <em>color</em>.</p>
|
|
1296
1248
|
|
|
1297
|
-
<h4 id="
|
|
1298
|
-
<dl class="rdoc-list note-list"><dt><code>color</code>
|
|
1249
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1250
|
+
<dl class="rdoc-list note-list"><dt><code>color</code></dt>
|
|
1299
1251
|
<dd>
|
|
1300
1252
|
<p>the fade color <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1301
|
-
</dd><dt><code>factor</code>
|
|
1253
|
+
</dd><dt><code>factor</code></dt>
|
|
1302
1254
|
<dd>
|
|
1303
1255
|
<p>fading factor [Integer]</p>
|
|
1304
1256
|
</dd></dl>
|
|
@@ -1315,10 +1267,10 @@
|
|
|
1315
1267
|
<pre class="lines">
|
|
1316
1268
|
|
|
1317
1269
|
|
|
1318
|
-
|
|
1270
|
+
228</pre>
|
|
1319
1271
|
</td>
|
|
1320
1272
|
<td>
|
|
1321
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1273
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 228</span>
|
|
1322
1274
|
|
|
1323
1275
|
<span class='kw'>def</span> <span class='id identifier rubyid_fade'>fade</span><span class='lparen'>(</span><span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_factor'>factor</span><span class='op'>=</span><span class='int'>255</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1324
1276
|
</td>
|
|
@@ -1352,10 +1304,10 @@
|
|
|
1352
1304
|
<pre class="lines">
|
|
1353
1305
|
|
|
1354
1306
|
|
|
1355
|
-
|
|
1307
|
+
216</pre>
|
|
1356
1308
|
</td>
|
|
1357
1309
|
<td>
|
|
1358
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1310
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 216</span>
|
|
1359
1311
|
|
|
1360
1312
|
<span class='kw'>def</span> <span class='id identifier rubyid_fill'>fill</span><span class='lparen'>(</span><span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1361
1313
|
</td>
|
|
@@ -1377,11 +1329,11 @@
|
|
|
1377
1329
|
|
|
1378
1330
|
<p>Return the color of the pixel at (<em>x</em>, <em>y</em>).</p>
|
|
1379
1331
|
|
|
1380
|
-
<h4 id="
|
|
1381
|
-
<dl class="rdoc-list note-list"><dt><code>x</code>
|
|
1332
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1333
|
+
<dl class="rdoc-list note-list"><dt><code>x</code></dt>
|
|
1382
1334
|
<dd>
|
|
1383
1335
|
<p>x-coordinate of the pixel of interest [Integer]</p>
|
|
1384
|
-
</dd><dt><code>y</code>
|
|
1336
|
+
</dd><dt><code>y</code></dt>
|
|
1385
1337
|
<dd>
|
|
1386
1338
|
<p>y-coordinate of the pixel of interest [Integer]</p>
|
|
1387
1339
|
</dd></dl>
|
|
@@ -1398,10 +1350,10 @@
|
|
|
1398
1350
|
<pre class="lines">
|
|
1399
1351
|
|
|
1400
1352
|
|
|
1401
|
-
|
|
1353
|
+
118</pre>
|
|
1402
1354
|
</td>
|
|
1403
1355
|
<td>
|
|
1404
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1356
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 118</span>
|
|
1405
1357
|
|
|
1406
1358
|
<span class='kw'>def</span> <span class='id identifier rubyid_getPixel'>getPixel</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1407
1359
|
</td>
|
|
@@ -1423,17 +1375,17 @@
|
|
|
1423
1375
|
|
|
1424
1376
|
<p>Fill image using a bilinear gradient.</p>
|
|
1425
1377
|
|
|
1426
|
-
<h4 id="
|
|
1427
|
-
<dl class="rdoc-list note-list"><dt><code>topleft</code>
|
|
1378
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1379
|
+
<dl class="rdoc-list note-list"><dt><code>topleft</code></dt>
|
|
1428
1380
|
<dd>
|
|
1429
1381
|
<p>pixel color for top-left corner <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1430
|
-
</dd><dt><code>topright</code>
|
|
1382
|
+
</dd><dt><code>topright</code></dt>
|
|
1431
1383
|
<dd>
|
|
1432
1384
|
<p>pixel color for top-right corner <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1433
|
-
</dd><dt><code>bottomleft</code>
|
|
1385
|
+
</dd><dt><code>bottomleft</code></dt>
|
|
1434
1386
|
<dd>
|
|
1435
1387
|
<p>pixel color for bottom-left corner <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1436
|
-
</dd><dt><code>bottomright</code>
|
|
1388
|
+
</dd><dt><code>bottomright</code></dt>
|
|
1437
1389
|
<dd>
|
|
1438
1390
|
<p>pixel color for bottom-right corner <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1439
1391
|
</dd></dl>
|
|
@@ -1450,10 +1402,10 @@
|
|
|
1450
1402
|
<pre class="lines">
|
|
1451
1403
|
|
|
1452
1404
|
|
|
1453
|
-
|
|
1405
|
+
286</pre>
|
|
1454
1406
|
</td>
|
|
1455
1407
|
<td>
|
|
1456
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1408
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 286</span>
|
|
1457
1409
|
|
|
1458
1410
|
<span class='kw'>def</span> <span class='id identifier rubyid_gradient'>gradient</span><span class='lparen'>(</span><span class='id identifier rubyid_topleft'>topleft</span><span class='comma'>,</span> <span class='id identifier rubyid_topright'>topright</span><span class='comma'>,</span> <span class='id identifier rubyid_bottomleft'>bottomleft</span><span class='comma'>,</span> <span class='id identifier rubyid_bottomright'>bottomright</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1459
1411
|
</td>
|
|
@@ -1500,10 +1452,10 @@
|
|
|
1500
1452
|
<pre class="lines">
|
|
1501
1453
|
|
|
1502
1454
|
|
|
1503
|
-
|
|
1455
|
+
132</pre>
|
|
1504
1456
|
</td>
|
|
1505
1457
|
<td>
|
|
1506
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1458
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 132</span>
|
|
1507
1459
|
|
|
1508
1460
|
<span class='kw'>def</span> <span class='id identifier rubyid_hasAlpha?'>hasAlpha?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1509
1461
|
</td>
|
|
@@ -1525,11 +1477,11 @@
|
|
|
1525
1477
|
|
|
1526
1478
|
<p>Fill image using a horizontal gradient.</p>
|
|
1527
1479
|
|
|
1528
|
-
<h4 id="
|
|
1529
|
-
<dl class="rdoc-list note-list"><dt><code>left</code>
|
|
1480
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1481
|
+
<dl class="rdoc-list note-list"><dt><code>left</code></dt>
|
|
1530
1482
|
<dd>
|
|
1531
1483
|
<p>starting color, for leftmost pixels <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1532
|
-
</dd><dt><code>right</code>
|
|
1484
|
+
</dd><dt><code>right</code></dt>
|
|
1533
1485
|
<dd>
|
|
1534
1486
|
<p>ending color, for rightmost pixels <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
1535
1487
|
</dd></dl>
|
|
@@ -1546,90 +1498,15 @@
|
|
|
1546
1498
|
<pre class="lines">
|
|
1547
1499
|
|
|
1548
1500
|
|
|
1549
|
-
|
|
1501
|
+
264</pre>
|
|
1550
1502
|
</td>
|
|
1551
1503
|
<td>
|
|
1552
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1504
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 264</span>
|
|
1553
1505
|
|
|
1554
1506
|
<span class='kw'>def</span> <span class='id identifier rubyid_hgradient'>hgradient</span><span class='lparen'>(</span><span class='id identifier rubyid_left'>left</span><span class='comma'>,</span> <span class='id identifier rubyid_right'>right</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1555
1507
|
</td>
|
|
1556
1508
|
</tr>
|
|
1557
1509
|
</table>
|
|
1558
|
-
</div>
|
|
1559
|
-
|
|
1560
|
-
<div class="method_details ">
|
|
1561
|
-
<h3 class="signature " id="initialize_without_data_string-instance_method">
|
|
1562
|
-
|
|
1563
|
-
#<strong>initialize_without_data_string</strong> ⇒ <tt><span class='object_link'><a href="" title="Fox::FXImage (class)">FXImage</a></span></tt>
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
</h3><div class="docstring">
|
|
1570
|
-
<div class="discussion">
|
|
1571
|
-
|
|
1572
|
-
<p>Create an image. If a client-side pixel buffer has been specified, the image owns the pixel buffer. If the <code>IMAGE_OWNED</code> flag is set but a <code>nil</code> pixel buffer is passed, a pixel buffer will be automatically created and will be owned by the image. The flags <code>IMAGE_SHMI</code> and <code>IMAGE_SHMP</code> may be specified for large images to instruct <span class='object_link'><a href="#render-instance_method" title="Fox::FXImage#render (method)">#render</a></span> to use shared memory to communicate with the server.</p>
|
|
1573
|
-
|
|
1574
|
-
<h4 id="label-Parameters-3A">Parameters:</h4>
|
|
1575
|
-
<dl class="rdoc-list note-list"><dt><code>a</code>
|
|
1576
|
-
<dd>
|
|
1577
|
-
<p>an application instance <span class='object_link'><a href="FXApp.html" title="Fox::FXApp (class)">Fox::FXApp</a></span></p>
|
|
1578
|
-
</dd><dt><code>pixels</code>
|
|
1579
|
-
<dd>
|
|
1580
|
-
<p>pixels [Array of FXColor values or string of raw [RGBA] values]</p>
|
|
1581
|
-
</dd><dt><code>opts</code>
|
|
1582
|
-
<dd>
|
|
1583
|
-
<p>image options [Integer]</p>
|
|
1584
|
-
</dd><dt><code>width</code>
|
|
1585
|
-
<dd>
|
|
1586
|
-
<p>image width [Integer]</p>
|
|
1587
|
-
</dd><dt><code>height</code>
|
|
1588
|
-
<dd>
|
|
1589
|
-
<p>image height [Integer]</p>
|
|
1590
|
-
</dd></dl>
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
</div>
|
|
1594
|
-
</div>
|
|
1595
|
-
<div class="tags">
|
|
1596
|
-
|
|
1597
|
-
<p class="tag_title">Returns:</p>
|
|
1598
|
-
<ul class="return">
|
|
1599
|
-
|
|
1600
|
-
<li>
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="Fox::FXImage (class)">FXImage</a></span></tt>)</span>
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
—
|
|
1608
|
-
<div class='inline'>
|
|
1609
|
-
<p>a new instance of FXImage</p>
|
|
1610
|
-
</div>
|
|
1611
|
-
|
|
1612
|
-
</li>
|
|
1613
|
-
|
|
1614
|
-
</ul>
|
|
1615
|
-
|
|
1616
|
-
</div><table class="source_code">
|
|
1617
|
-
<tr>
|
|
1618
|
-
<td>
|
|
1619
|
-
<pre class="lines">
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
693
|
|
1623
|
-
694</pre>
|
|
1624
|
-
</td>
|
|
1625
|
-
<td>
|
|
1626
|
-
<pre class="code"><span class="info file"># File 'lib/fox16/core.rb', line 693</span>
|
|
1627
|
-
|
|
1628
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_a'>a</span><span class='comma'>,</span> <span class='id identifier rubyid_pixels'>pixels</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='op'>=</span><span class='int'>1</span><span class='comma'>,</span> <span class='id identifier rubyid_height'>height</span><span class='op'>=</span><span class='int'>1</span><span class='rparen'>)</span> <span class='comment'># :yields: theImage
|
|
1629
|
-
</span><span class='kw'>end</span></pre>
|
|
1630
|
-
</td>
|
|
1631
|
-
</tr>
|
|
1632
|
-
</table>
|
|
1633
1510
|
</div>
|
|
1634
1511
|
|
|
1635
1512
|
<div class="method_details ">
|
|
@@ -1648,8 +1525,8 @@
|
|
|
1648
1525
|
|
|
1649
1526
|
<p>Note that the base class version of <span class='object_link'><a href="#loadPixels-instance_method" title="Fox::FXImage#loadPixels (method)">#loadPixels</a></span> expects to read the the pixel data in a neutral format (i.e. without any image format specific information). For example, if you have a 1024x768 image without an alpha channel (and thus only the red, green and blue channels), <span class='object_link'><a href="#loadPixels-instance_method" title="Fox::FXImage#loadPixels (method)">#loadPixels</a></span> will attempt to read a total of 1024*768*3*8 bytes from the stream. The behavior of <span class='object_link'><a href="#loadPixels-instance_method" title="Fox::FXImage#loadPixels (method)">#loadPixels</a></span> is different for subclasses such as FXPNGImage, where <span class='object_link'><a href="#loadPixels-instance_method" title="Fox::FXImage#loadPixels (method)">#loadPixels</a></span> will instead expects to read the image data in a specific image file format (i.e. the PNG file format).</p>
|
|
1650
1527
|
|
|
1651
|
-
<h4 id="
|
|
1652
|
-
<dl class="rdoc-list note-list"><dt><code>store</code>
|
|
1528
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1529
|
+
<dl class="rdoc-list note-list"><dt><code>store</code></dt>
|
|
1653
1530
|
<dd>
|
|
1654
1531
|
<p>opened stream from which to read the pixel data <span class='object_link'><a href="FXStream.html" title="Fox::FXStream (class)">Fox::FXStream</a></span></p>
|
|
1655
1532
|
</dd></dl>
|
|
@@ -1666,10 +1543,10 @@
|
|
|
1666
1543
|
<pre class="lines">
|
|
1667
1544
|
|
|
1668
1545
|
|
|
1669
|
-
|
|
1546
|
+
332</pre>
|
|
1670
1547
|
</td>
|
|
1671
1548
|
<td>
|
|
1672
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1549
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 332</span>
|
|
1673
1550
|
|
|
1674
1551
|
<span class='kw'>def</span> <span class='id identifier rubyid_loadPixels'>loadPixels</span><span class='lparen'>(</span><span class='id identifier rubyid_store'>store</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1675
1552
|
</td>
|
|
@@ -1691,11 +1568,11 @@
|
|
|
1691
1568
|
|
|
1692
1569
|
<p>Mirror image horizontally and/or vertically and then re-render the server-side image from the client-side pixel buffer.</p>
|
|
1693
1570
|
|
|
1694
|
-
<h4 id="
|
|
1695
|
-
<dl class="rdoc-list note-list"><dt><code>horizontal</code>
|
|
1571
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1572
|
+
<dl class="rdoc-list note-list"><dt><code>horizontal</code></dt>
|
|
1696
1573
|
<dd>
|
|
1697
1574
|
<p>if <code>true</code>, the image will be flipped from left to right [Boolean]</p>
|
|
1698
|
-
</dd><dt><code>vertical</code>
|
|
1575
|
+
</dd><dt><code>vertical</code></dt>
|
|
1699
1576
|
<dd>
|
|
1700
1577
|
<p>if <code>true</code>, the image will be flipped from top to bottom [Boolean]</p>
|
|
1701
1578
|
</dd></dl>
|
|
@@ -1712,10 +1589,10 @@
|
|
|
1712
1589
|
<pre class="lines">
|
|
1713
1590
|
|
|
1714
1591
|
|
|
1715
|
-
|
|
1592
|
+
186</pre>
|
|
1716
1593
|
</td>
|
|
1717
1594
|
<td>
|
|
1718
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1595
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 186</span>
|
|
1719
1596
|
|
|
1720
1597
|
<span class='kw'>def</span> <span class='id identifier rubyid_mirror'>mirror</span><span class='lparen'>(</span><span class='id identifier rubyid_horizontal'>horizontal</span><span class='comma'>,</span> <span class='id identifier rubyid_vertical'>vertical</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1721
1598
|
</td>
|
|
@@ -1753,10 +1630,10 @@
|
|
|
1753
1630
|
<pre class="lines">
|
|
1754
1631
|
|
|
1755
1632
|
|
|
1756
|
-
|
|
1633
|
+
108</pre>
|
|
1757
1634
|
</td>
|
|
1758
1635
|
<td>
|
|
1759
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1636
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 108</span>
|
|
1760
1637
|
|
|
1761
1638
|
<span class='kw'>def</span> <span class='id identifier rubyid_pixel_string'>pixel_string</span><span class='lparen'>(</span><span class='id identifier rubyid_offset'>offset</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_size'>size</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1762
1639
|
</td>
|
|
@@ -1790,10 +1667,10 @@
|
|
|
1790
1667
|
<pre class="lines">
|
|
1791
1668
|
|
|
1792
1669
|
|
|
1793
|
-
|
|
1670
|
+
155</pre>
|
|
1794
1671
|
</td>
|
|
1795
1672
|
<td>
|
|
1796
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1673
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 155</span>
|
|
1797
1674
|
|
|
1798
1675
|
<span class='kw'>def</span> <span class='id identifier rubyid_release'>release</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1799
1676
|
</td>
|
|
@@ -1827,10 +1704,10 @@
|
|
|
1827
1704
|
<pre class="lines">
|
|
1828
1705
|
|
|
1829
1706
|
|
|
1830
|
-
|
|
1707
|
+
148</pre>
|
|
1831
1708
|
</td>
|
|
1832
1709
|
<td>
|
|
1833
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1710
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 148</span>
|
|
1834
1711
|
|
|
1835
1712
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1836
1713
|
</td>
|
|
@@ -1864,10 +1741,10 @@
|
|
|
1864
1741
|
<pre class="lines">
|
|
1865
1742
|
|
|
1866
1743
|
|
|
1867
|
-
|
|
1744
|
+
142</pre>
|
|
1868
1745
|
</td>
|
|
1869
1746
|
<td>
|
|
1870
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1747
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 142</span>
|
|
1871
1748
|
|
|
1872
1749
|
<span class='kw'>def</span> <span class='id identifier rubyid_restore'>restore</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1873
1750
|
</td>
|
|
@@ -1889,8 +1766,8 @@
|
|
|
1889
1766
|
|
|
1890
1767
|
<p>Rotate image counter-clockwise by some number of degrees and then re-render the server-side image from the client-side pixel buffer.</p>
|
|
1891
1768
|
|
|
1892
|
-
<h4 id="
|
|
1893
|
-
<dl class="rdoc-list note-list"><dt><code>degrees</code>
|
|
1769
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1770
|
+
<dl class="rdoc-list note-list"><dt><code>degrees</code></dt>
|
|
1894
1771
|
<dd>
|
|
1895
1772
|
<p>number of degrees by which to rotate the image [Integer]</p>
|
|
1896
1773
|
</dd></dl>
|
|
@@ -1907,10 +1784,10 @@
|
|
|
1907
1784
|
<pre class="lines">
|
|
1908
1785
|
|
|
1909
1786
|
|
|
1910
|
-
|
|
1787
|
+
196</pre>
|
|
1911
1788
|
</td>
|
|
1912
1789
|
<td>
|
|
1913
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1790
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 196</span>
|
|
1914
1791
|
|
|
1915
1792
|
<span class='kw'>def</span> <span class='id identifier rubyid_rotate'>rotate</span><span class='lparen'>(</span><span class='id identifier rubyid_degrees'>degrees</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1916
1793
|
</td>
|
|
@@ -1934,8 +1811,8 @@
|
|
|
1934
1811
|
|
|
1935
1812
|
<p>Note that the base class version of <span class='object_link'><a href="#savePixels-instance_method" title="Fox::FXImage#savePixels (method)">#savePixels</a></span> saves the pixel data as-is, without any image format specific information. For example, if you have a 1024x768 image without an alpha channel (and thus only the red, green and blue channels) the total number of bytes written to the stream will be 1024*768*3*8. The behavior of <span class='object_link'><a href="#savePixels-instance_method" title="Fox::FXImage#savePixels (method)">#savePixels</a></span> is different for subclasses such as FXPNGImage, where <span class='object_link'><a href="#savePixels-instance_method" title="Fox::FXImage#savePixels (method)">#savePixels</a></span> will instead save the image data in a specific image file format (i.e. the PNG file format).</p>
|
|
1936
1813
|
|
|
1937
|
-
<h4 id="
|
|
1938
|
-
<dl class="rdoc-list note-list"><dt><code>store</code>
|
|
1814
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1815
|
+
<dl class="rdoc-list note-list"><dt><code>store</code></dt>
|
|
1939
1816
|
<dd>
|
|
1940
1817
|
<p>opened stream to which to save the pixel data <span class='object_link'><a href="FXStream.html" title="Fox::FXStream (class)">Fox::FXStream</a></span></p>
|
|
1941
1818
|
</dd></dl>
|
|
@@ -1952,10 +1829,10 @@
|
|
|
1952
1829
|
<pre class="lines">
|
|
1953
1830
|
|
|
1954
1831
|
|
|
1955
|
-
|
|
1832
|
+
313</pre>
|
|
1956
1833
|
</td>
|
|
1957
1834
|
<td>
|
|
1958
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1835
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 313</span>
|
|
1959
1836
|
|
|
1960
1837
|
<span class='kw'>def</span> <span class='id identifier rubyid_savePixels'>savePixels</span><span class='lparen'>(</span><span class='id identifier rubyid_store'>store</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
1961
1838
|
</td>
|
|
@@ -1979,14 +1856,14 @@
|
|
|
1979
1856
|
|
|
1980
1857
|
<p>The optional third argument specifies the <em>quality</em> of the scaling algorithm used. By default, <span class='object_link'><a href="#scale-instance_method" title="Fox::FXImage#scale (method)">#scale</a></span> uses a fast (but low quality) nearest-neighbor algorithm for scaling the image to its new size. To use the higher-quality scaling algorithm from FOX 1.0, you should pass in a value of 1 as the third argument to <span class='object_link'><a href="#scale-instance_method" title="Fox::FXImage#scale (method)">#scale</a></span>.</p>
|
|
1981
1858
|
|
|
1982
|
-
<h4 id="
|
|
1983
|
-
<dl class="rdoc-list note-list"><dt><code>width</code>
|
|
1859
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1860
|
+
<dl class="rdoc-list note-list"><dt><code>width</code></dt>
|
|
1984
1861
|
<dd>
|
|
1985
1862
|
<p>new image width, in pixels [Integer]</p>
|
|
1986
|
-
</dd><dt><code>height</code>
|
|
1863
|
+
</dd><dt><code>height</code></dt>
|
|
1987
1864
|
<dd>
|
|
1988
1865
|
<p>new image height, in pixels [Integer]</p>
|
|
1989
|
-
</dd><dt><code>quality</code>
|
|
1866
|
+
</dd><dt><code>quality</code></dt>
|
|
1990
1867
|
<dd>
|
|
1991
1868
|
<p>scaling algorithm quality, either 0 or 1 (see above) [Integer]</p>
|
|
1992
1869
|
</dd></dl>
|
|
@@ -2003,10 +1880,10 @@
|
|
|
2003
1880
|
<pre class="lines">
|
|
2004
1881
|
|
|
2005
1882
|
|
|
2006
|
-
|
|
1883
|
+
175</pre>
|
|
2007
1884
|
</td>
|
|
2008
1885
|
<td>
|
|
2009
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1886
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 175</span>
|
|
2010
1887
|
|
|
2011
1888
|
<span class='kw'>def</span> <span class='id identifier rubyid_scale'>scale</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='comma'>,</span> <span class='id identifier rubyid_quality'>quality</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
2012
1889
|
</td>
|
|
@@ -2028,14 +1905,14 @@
|
|
|
2028
1905
|
|
|
2029
1906
|
<p>Set pixel at (<em>x</em>, <em>y</em>) to <em>clr</em>.</p>
|
|
2030
1907
|
|
|
2031
|
-
<h4 id="
|
|
2032
|
-
<dl class="rdoc-list note-list"><dt><code>x</code>
|
|
1908
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1909
|
+
<dl class="rdoc-list note-list"><dt><code>x</code></dt>
|
|
2033
1910
|
<dd>
|
|
2034
1911
|
<p>x-coordinate of the pixel of interest [Integer]</p>
|
|
2035
|
-
</dd><dt><code>y</code>
|
|
1912
|
+
</dd><dt><code>y</code></dt>
|
|
2036
1913
|
<dd>
|
|
2037
1914
|
<p>y-coordinate of the pixel of interest [Integer]</p>
|
|
2038
|
-
</dd><dt><code>clr</code>
|
|
1915
|
+
</dd><dt><code>clr</code></dt>
|
|
2039
1916
|
<dd>
|
|
2040
1917
|
<p>new color value for this pixel <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
2041
1918
|
</dd></dl>
|
|
@@ -2052,10 +1929,10 @@
|
|
|
2052
1929
|
<pre class="lines">
|
|
2053
1930
|
|
|
2054
1931
|
|
|
2055
|
-
|
|
1932
|
+
129</pre>
|
|
2056
1933
|
</td>
|
|
2057
1934
|
<td>
|
|
2058
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
1935
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 129</span>
|
|
2059
1936
|
|
|
2060
1937
|
<span class='kw'>def</span> <span class='id identifier rubyid_setPixel'>setPixel</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_clr'>clr</span><span class='rparen'>)</span> <span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
2061
1938
|
</td>
|
|
@@ -2077,75 +1954,21 @@
|
|
|
2077
1954
|
|
|
2078
1955
|
<p>Populate the image with new pixel data of the same size or of a new size</p>
|
|
2079
1956
|
|
|
2080
|
-
<p>Pixel data is copied
|
|
2081
|
-
|
|
2082
|
-
<h4 id="label-Parameters-3A">Parameters:</h4>
|
|
2083
|
-
<dl class="rdoc-list note-list"><dt><code>pixels</code>
|
|
2084
|
-
<dd>
|
|
2085
|
-
<p>pixels [Array of FXColor values or string of raw [RGBA] values]</p>
|
|
2086
|
-
</dd><dt><code>opts</code>
|
|
2087
|
-
<dd>
|
|
2088
|
-
<p>image options [Integer]</p>
|
|
2089
|
-
</dd><dt><code>width</code>
|
|
2090
|
-
<dd>
|
|
2091
|
-
<p>image width [Integer]</p>
|
|
2092
|
-
</dd><dt><code>height</code>
|
|
2093
|
-
<dd>
|
|
2094
|
-
<p>image height [Integer]</p>
|
|
2095
|
-
</dd></dl>
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
</div>
|
|
2099
|
-
</div>
|
|
2100
|
-
<div class="tags">
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
</div><table class="source_code">
|
|
2104
|
-
<tr>
|
|
2105
|
-
<td>
|
|
2106
|
-
<pre class="lines">
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
95
|
|
2110
|
-
96</pre>
|
|
2111
|
-
</td>
|
|
2112
|
-
<td>
|
|
2113
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 95</span>
|
|
2114
|
-
|
|
2115
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_setPixels'>setPixels</span><span class='lparen'>(</span><span class='id identifier rubyid_pixels'>pixels</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_height'>height</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2116
|
-
<span class='kw'>end</span></pre>
|
|
2117
|
-
</td>
|
|
2118
|
-
</tr>
|
|
2119
|
-
</table>
|
|
2120
|
-
</div>
|
|
2121
|
-
|
|
2122
|
-
<div class="method_details ">
|
|
2123
|
-
<h3 class="signature " id="setPixels_without_data_string-instance_method">
|
|
2124
|
-
|
|
2125
|
-
#<strong>setPixels_without_data_string</strong> ⇒ <tt>Object</tt>
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
</h3><div class="docstring">
|
|
2132
|
-
<div class="discussion">
|
|
2133
|
-
|
|
2134
|
-
<p>Populate the image with new pixel data of the same size or of a new size</p>
|
|
1957
|
+
<p>Pixel data is copied when IMAGE_OWNED option is set or when provided as Array. Pixel data is used without copying when IMAGE_OWNED isn’t set and provided as String. In that case the string must be writable and receives modifications to the image.</p>
|
|
2135
1958
|
|
|
2136
|
-
<p>
|
|
1959
|
+
<p>If called with <code>width</code> and <code>height</code>, the size of the serverside representation of the image, if it exists, is adjusted but the contents are not updated yet. This can be done by calling render().</p>
|
|
2137
1960
|
|
|
2138
|
-
<h4 id="
|
|
2139
|
-
<dl class="rdoc-list note-list"><dt><code>pixels</code>
|
|
1961
|
+
<h4 id="parameters">Parameters:</h4>
|
|
1962
|
+
<dl class="rdoc-list note-list"><dt><code>pixels</code></dt>
|
|
2140
1963
|
<dd>
|
|
2141
1964
|
<p>pixels [Array of FXColor values or string of raw [RGBA] values]</p>
|
|
2142
|
-
</dd><dt><code>opts</code>
|
|
1965
|
+
</dd><dt><code>opts</code></dt>
|
|
2143
1966
|
<dd>
|
|
2144
1967
|
<p>image options [Integer]</p>
|
|
2145
|
-
</dd><dt><code>width</code>
|
|
1968
|
+
</dd><dt><code>width</code></dt>
|
|
2146
1969
|
<dd>
|
|
2147
1970
|
<p>image width [Integer]</p>
|
|
2148
|
-
</dd><dt><code>height</code>
|
|
1971
|
+
</dd><dt><code>height</code></dt>
|
|
2149
1972
|
<dd>
|
|
2150
1973
|
<p>image height [Integer]</p>
|
|
2151
1974
|
</dd></dl>
|
|
@@ -2162,11 +1985,11 @@
|
|
|
2162
1985
|
<pre class="lines">
|
|
2163
1986
|
|
|
2164
1987
|
|
|
2165
|
-
|
|
2166
|
-
|
|
1988
|
+
98
|
|
1989
|
+
99</pre>
|
|
2167
1990
|
</td>
|
|
2168
1991
|
<td>
|
|
2169
|
-
<pre class="code"><span class="info file"># File '
|
|
1992
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 98</span>
|
|
2170
1993
|
|
|
2171
1994
|
<span class='kw'>def</span> <span class='id identifier rubyid_setPixels'>setPixels</span><span class='lparen'>(</span><span class='id identifier rubyid_pixels'>pixels</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_height'>height</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
|
2172
1995
|
<span class='kw'>end</span></pre>
|
|
@@ -2189,11 +2012,11 @@
|
|
|
2189
2012
|
|
|
2190
2013
|
<p>Fill image using a vertical gradient.</p>
|
|
2191
2014
|
|
|
2192
|
-
<h4 id="
|
|
2193
|
-
<dl class="rdoc-list note-list"><dt><code>top</code>
|
|
2015
|
+
<h4 id="parameters">Parameters:</h4>
|
|
2016
|
+
<dl class="rdoc-list note-list"><dt><code>top</code></dt>
|
|
2194
2017
|
<dd>
|
|
2195
2018
|
<p>starting color, for topmost pixels <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
2196
|
-
</dd><dt><code>bottom</code>
|
|
2019
|
+
</dd><dt><code>bottom</code></dt>
|
|
2197
2020
|
<dd>
|
|
2198
2021
|
<p>ending color, for bottommost pixels <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
2199
2022
|
</dd></dl>
|
|
@@ -2210,10 +2033,10 @@
|
|
|
2210
2033
|
<pre class="lines">
|
|
2211
2034
|
|
|
2212
2035
|
|
|
2213
|
-
|
|
2036
|
+
274</pre>
|
|
2214
2037
|
</td>
|
|
2215
2038
|
<td>
|
|
2216
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
2039
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 274</span>
|
|
2217
2040
|
|
|
2218
2041
|
<span class='kw'>def</span> <span class='id identifier rubyid_vgradient'>vgradient</span><span class='lparen'>(</span><span class='id identifier rubyid_top'>top</span><span class='comma'>,</span> <span class='id identifier rubyid_bottom'>bottom</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
2219
2042
|
</td>
|
|
@@ -2235,11 +2058,11 @@
|
|
|
2235
2058
|
|
|
2236
2059
|
<p>Shear image horizontally and then re-render the server-side image from the client-side pixel buffer. The number of pixels is equal to the <em>shear</em> parameter times 256. The area outside the image is filled with transparent black, unless another <em>color</em> is specified.</p>
|
|
2237
2060
|
|
|
2238
|
-
<h4 id="
|
|
2239
|
-
<dl class="rdoc-list note-list"><dt><code>shear</code>
|
|
2061
|
+
<h4 id="parameters">Parameters:</h4>
|
|
2062
|
+
<dl class="rdoc-list note-list"><dt><code>shear</code></dt>
|
|
2240
2063
|
<dd>
|
|
2241
2064
|
<p>how far to shear [Integer]</p>
|
|
2242
|
-
</dd><dt><code>color</code>
|
|
2065
|
+
</dd><dt><code>color</code></dt>
|
|
2243
2066
|
<dd>
|
|
2244
2067
|
<p>fill color for areas outside the sheared image <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
2245
2068
|
</dd></dl>
|
|
@@ -2256,10 +2079,10 @@
|
|
|
2256
2079
|
<pre class="lines">
|
|
2257
2080
|
|
|
2258
2081
|
|
|
2259
|
-
|
|
2082
|
+
241</pre>
|
|
2260
2083
|
</td>
|
|
2261
2084
|
<td>
|
|
2262
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
2085
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 241</span>
|
|
2263
2086
|
|
|
2264
2087
|
<span class='kw'>def</span> <span class='id identifier rubyid_xshear'>xshear</span><span class='lparen'>(</span><span class='id identifier rubyid_shear'>shear</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
2265
2088
|
</td>
|
|
@@ -2281,11 +2104,11 @@
|
|
|
2281
2104
|
|
|
2282
2105
|
<p>Shear image verticallyand then re-render the server-side image from the client-side pixel buffer. The number of pixels is equal to the <em>shear</em> parameter times 256. The area outside the image is filled with transparent black, unless another <em>color</em> is specified.</p>
|
|
2283
2106
|
|
|
2284
|
-
<h4 id="
|
|
2285
|
-
<dl class="rdoc-list note-list"><dt><code>shear</code>
|
|
2107
|
+
<h4 id="parameters">Parameters:</h4>
|
|
2108
|
+
<dl class="rdoc-list note-list"><dt><code>shear</code></dt>
|
|
2286
2109
|
<dd>
|
|
2287
2110
|
<p>how far to shear [Integer]</p>
|
|
2288
|
-
</dd><dt><code>color</code>
|
|
2111
|
+
</dd><dt><code>color</code></dt>
|
|
2289
2112
|
<dd>
|
|
2290
2113
|
<p>fill color for areas outside the sheared image <span class='object_link'><a href="FXColor.html" title="Fox::FXColor (class)">Fox::FXColor</a></span></p>
|
|
2291
2114
|
</dd></dl>
|
|
@@ -2302,10 +2125,10 @@
|
|
|
2302
2125
|
<pre class="lines">
|
|
2303
2126
|
|
|
2304
2127
|
|
|
2305
|
-
|
|
2128
|
+
254</pre>
|
|
2306
2129
|
</td>
|
|
2307
2130
|
<td>
|
|
2308
|
-
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line
|
|
2131
|
+
<pre class="code"><span class="info file"># File 'rdoc-sources/FXImage.rb', line 254</span>
|
|
2309
2132
|
|
|
2310
2133
|
<span class='kw'>def</span> <span class='id identifier rubyid_yshear'>yshear</span><span class='lparen'>(</span><span class='id identifier rubyid_shear'>shear</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
|
2311
2134
|
</td>
|
|
@@ -2318,9 +2141,9 @@
|
|
|
2318
2141
|
</div>
|
|
2319
2142
|
|
|
2320
2143
|
<div id="footer">
|
|
2321
|
-
Generated on
|
|
2144
|
+
Generated on Thu Mar 26 09:48:27 2026 by
|
|
2322
2145
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2323
|
-
0.9.
|
|
2146
|
+
0.9.38 (ruby-4.0.0).
|
|
2324
2147
|
</div>
|
|
2325
2148
|
|
|
2326
2149
|
</div>
|