Results for "Author: robert rayment"
Spinning Illusions by Robert Rayment. (Small change, hopefully more stable on other OS than Win98) Just a bit of VB doodling, 8 shapes with odd effects. [ Shaped form & picbox, +/- rotation anti-alias rotation, VBASM, Res wav ]. Zip 100 KB, Win98.
Plasma Worlds by Robert Rayment. (Cylindrical tunnel added to ASM version)Two progs. One, pure VB (no APIs or OCXs) for making plasma screens that can be saved as a bmp, bit slow but adequate when compiled. Plasma uses a non-recursive routine on to any rectangle and can be wrapped for tiling. Graininess, scale & color palettes can be changed. The other prog is the same PLUS scrolling in 16 directions, color cycling, cylindrical, spherical & hyperbolic wrapping and fantasy landscape projections all with multiple controls - VB+APIs+ASM, much faster. Only tested on Win98, should be OK on ME & XP but some Win2K OSs have problems with this use of Assembler. Please let me know your OS if you find bugs. Zip 79KB.
Knots by Robert Rayment. Load knots, Save knots (*.knt files), Make a knot (colored cursor, + hairs, grid). Examples KNOTS.knt (20 knots drawn using this prog) & Hello.knt included. See also KnotsInfo.txt. Zip 21KB, Win98.
Shove H'Penny by Robert Rayment. (Updated for XP)An old English pub game. The full rules are applied including illegal moves - see help file. The hardest part was getting a reasonable collision between disks: a bit of distorted Newton plus blitting, constructive comments on this welcome. Win98, Zip file 56 kb.
"Anti-aliasing demo" by Robert Rayment. There are a few anti-aliasing progs on PSC. Mostly they are cleverly convoluted into several subs. I thought I'd stretch out the logic - makes it easier for me to understand and maybe for some of you.
"A Lotta Noise" by Robert Rayment: (UPDATE2 Cycle speed added) (UPDATE with faster linear Perlin & Marble) This is a demonstration of 32-bit StretchDIBits which can be run as VB code or VB + machine code. Perlin noise (Linear or Cosine-EASE), wood grain and marble surfaces can be designed on a picture box varying from 16x16 to 768x512 pixels. Color weighting, scales, wood and marble types, animated scales and color cyling can be done and the image saved, as a BMP, at any point. The prog can be run with any system color setting. A long integer graphic surface has the advantage in that it can more easily be dealt with using MMX. This demo is just the 'tip of the iceberg' but the method might be useful for designing textures for any application since the machine code is quite general and the bin file can be run locally. Zip file 38 kb.
As(s)embler Plus VB Picture Processing Fun: by Robert Rayment. (Updated for XP)I like to have everything at my finger tips as the screen shot shows. If you prefer the minimalist approach see the excellent filter prog by Manuel Santos ( I have used a modification of a couple of his filters and have included his bitmap). Stephan Swertvaegher's picture handling prog is great for ideas and delicate changes to pictures ( I haven't seen Kevin Gadd's prog but which I believe is based on a dll written in C). The ripple effect is based on Didar ul Alam's prog. My prog has some of their features but also includes scrolling, shifting, rotation, zooming (plus anti-alias rotation and zooming), rectangle extraction, resizing and crazy mirrors. Looping is also included which can cycle through changes until stopped. All but a couple of things are duplicated in mcode. For some effects this is only included for completeness but has a dramatic effect on others. The programmer is usually the last person to find all the errors so - Constructive comments welcome. Win98. Zip file 63 KB.
Newton's Cradle & Metronome by Robert Rayment. (UPDATE using QueryPer... API) Simulates the known movement of balls in an idealized Cradle with variable speed & improved timing for the Metronome. Two progs. Win98 & WinXP Zip file 24 KB.
A PinBall Demo by Robert Rayment. UPDATED for XP, wayward pixels killed, scoring and ball capture improved. See notes in the Form. Zip file 116 Kb.
Demo Spheroid Wrapping by Robert Rayment. This takes any bitmap & wraps it around a sphere. This can then be moved, rotated and magnified. The prog can be run with VB or machine code. Controls are keys only for this demo. Win 98 Zip file 85 KB.
Interactive Filter Design by Robert Rayment. IMPROVED: Input, VB or ASM, some user filters by Malcom Ferris(NZ) included in a *.ufi file. I was in two minds about submitting this since it is really for my own use. Included are some 3x3 filters from Unlimited Realities and Manuel Santos. With this prog filters can be up to 5x5. What would interest me is whether anyone can find designs that are significantly different from the 3x3 filters with the filter formula I've used. Win98, Zip file 72KB.
NASM Editor, assembler & Tutorial by Robert Rayment. (Version 3.5) This is an MDI RTB editor specifically for creating and producing pure machine code and DLLs for use with VB. I've written it because nearly all the refs on the Web are for DOS-asm, C-asm and All asm Windows progs. These are mostly confusing and none of it is needed to write useful VB-asm progs. nasmw.exe is needed to make full use of this package (Latest Web refs for NASM are given (NB Can also be obtained from A1VBCODE.com)). In the pack there is a Help file (make sure to read Requirements about the placement of nasmw.exe and other progs), a Tutor file and a crib for all the NASM mnemonics. Bin files ( called in VB using CallWindowProc) and DLL files can be created with temporary files to clear errors and then permanent files. Starter stub files for Bins and DLLs are menued. There are also 5 Bin examples and 7 DLLs showing a variety of ways that these can be written, in particular the NASM syntax. Reference code for the editor was taken from all over the place. If you're a beginner there's still a lot of work to do before you can write useful asm progs but, hopefully, this will get you over the first hurdles. Good luck! Win98, Zip 120KB.
Despeckler by Robert Rayment.(Update Re-load added) This attempts to demonstrate some basic patching, dust & scratch removal, de-spotting, pixel painting, sharp, soft, dark & brightening for pictures. The operations can be for the whole picture or a selected area with varying blemish sizes and thresholds. Color selection and a magnifier help with correcting small areas. Example bitmaps are included. Can be run as VB or VB+ASM. The ASM makes extensive use of MMX. -------------------------------------------------- Optionally the use of i_view32.exe (freeware from www.irfanview.com) is demonstrated for loading and saving any image file format in VB....See Notes.txt. -------------------------------------------------- Thanks to VBAccelerator.com (Dialog class), VBSpeed (Timer class) and Ulli (ToolTips class - PSC CodeId=42051) (Exe tested on WinXP) Win98, Zip 205KB.
Desktop Magnifier & Color Picker by Robert Rayment. Always on top, x2, x4 & x8 magnification, RGB to Clipboard, exact location of cursor shown on magnifier with a black dot. Magnifier can be moved to any part of the screen and the code can easily be changed to alter the area of magnification if wanted. Smooth operation. Win98 (exe WinXP) Zip 7 KB.
Doodle Bytes by Robert Rayment. (Updated) This shows a variety of animations using the technique of drawing to a byte array and blitting to the screen with a palette. Win98 (exe WinXP) 14 KB.
Fast Bit-shifting Class Demo (Update + ASM files)by Robert Rayment. Thanks to David Fritts for highlighting this method on PSC (CodeId=45885). I've corrected the assembler and Ulli has recast it in his own inimitable style with some explanations. In fact the method is the self-same as that used by Dmitry (CodeId=11830) a few years ago. The main point is that, when comparing fast EXEs, this bitshifting class is over 10 times quicker than the standard VB way using functions of the form 2^p. This description is extended in Notes.txt.
Picture Collector by Robert Rayment.(UPDATE with New Look dialog (Thanks redbird77) and maintain aspect ratio) (Upgraded for WinXP - thanks Carles) I had a request to write a quick program to collect a selection of picture files (standard VB ones) from a folder and save them as thumbnails to a single bmp. Shows multi-selection dialog and parsing input string and - might be useful - could be embellished. Win98 Zip 6 KB.
Brush Vectors by Robert Rayment. (Added binary input/output. Fast version, see Help for info on Fast redraw.) This is a vector drawing program using brushes with up to 8 widths, 4 directions, color & transparency. A brush stroke is started with a left-click(or space bar), move mouse to draw & left-click(or space bar) to end it. Each stroke is stored in a vector array which can be saved to a file. Colors can be parked and also saved to a file. The advantage of vectors is that they are full 24-bit color can be stretched/shrunk to a new canavs size. File format can be ASCII (.vec) or binary (.veb). Vec files are usually much smaller than BMP and veb files often smaller than GIF or JPEG. There aren't many aids to drawing yet apart from a fill tool and Shift & Ctrl keying to force vertical & horizontal drawing. So it needs some skill to produce nice pictures. Undo/Redo is almost unlimited, vectors can be deleted from the last drawn or clipped down to the last undo. Deleting any individual vector is not included yet. Important to read the help file to get the most out of this prog. (exe tested on WinXP), Win98, Zip 48KB.
Fancy Scrollbars by Robert Rayment. If wanted, the purpose here is to get away from the standard VB scrollbars and add other colors, shaping & effects. Lots of examples included to show almost unlimited design possibilities. One reusable bas Module provided & a set of short fixed Subs to include on the Form containing the scrollbars. No extra dependencies & just one recommended API (Sleep). Full instructions given. (exe WinXP) Win98, Zip 39 KB.
BmpToJpeg GDI+ version (Quality & Regions) by Robert Rayment. Converts bmp to jpeg. See effect of quality before saving. Selected regions can be of a different quality. Regions can be rectangle, rounded rectangle, oval or lasso. It appears that there are intermittent problems with ijl15.dll and Win2K. So this prog has used cut, paste & adapted code from Carles P V (CodeId=42376) & MrBoBo (CodeId=42488) for GDI+ which, if you haven't got it, can be downloaded at - www.microsoft.com/downloads/release.asp?releaseid=32738 - Install gdiplus.dll in your system or app folder. (Exe tested on XP Home) Win 2K, Win 98, Zip 241 KB (Couple of bmps included).