Results for "Author: robert rayment"
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.
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.
Tunnels & Things by Robert Rayment: The simplicity of this appeals to me. Draw to a byte array and blit it to the form using StretchDIBits. The advantage of StretchDIBits is that it can take a pointer to the byte drawing surface and to a palette. It can be as close as VB gets to direct screen addressing similar to the old DOS Screen 13, only better. It is no competitor to DirectX but is very much simpler and pretty fast. The demonstration shows various tunnels, MMX scrolling, Plasma, Fire etc. Drawing is done using VB and animation using assembler (assembler doesn't have to be used but I prefer it). BTW please do not contaminate my progs with the prurient Option Explicit !! Zip file is 63KB.
Linear Transforms by Robert Rayment. This is maybe 'old hat' to some of you. It shows in pure VB, apart from loading bitmaps & set & get pixels, how to map a rectangular bitmap area onto a non-reeentrant quadrilateral, a circle, cylinder, right-circular cone and a sphere. I've stopped short of automating the shapes and saving the transfoms so you need to change the parameters in the code to get variations. Hopefully the comments are sufficient for you to do with it as you wish! Zip file 145KB (With some bitmaps).
Spirals by Robert Rayment. Chris and I were looking at some spirals and I've animated a few for your pleasure (if you like that kind of thing!). See 'Tunnels & Things' for the techniques. Zip file 24 KB.
A Dash Through the Woods by Robert Rayment. UPDATE: Improved bitmap creation (Having been goaded by Paul) plus some simple sound. This prog is based on the triplet StretchDIBits, byte arrays and assembler (as with 'Tunnels & Things' which got 10 excellent votes) except I've left out the assembler which means that it MUST be compiled so that the array manipulations are again dealt with by machine code. The prog will only produce a large bitmap file of smaller trees from a starting bitmap ONCE so that later runs can load up the byte arrays quickly. The creation of the bit maps is fast enough now so you could leave out the save to disk if you wanted to. It shows some other uses for StretchDIBits and 8-bit color byte surfaces, which might be of interest to some of you. No assembler is used. Trees are then put onto a drawing surface starting with the smallest and ignoring a white surround (masks not needed). By keeping and adjusting the x-position, direction and type of tree it looks like moving through some woods. Timing (using GetTickCount) and hence speed, the number of tree starts and their spread are on an options menu. The left & right cursor moves a little car to the left & right (actually the trees move in the opposite direction) and the up & down cursor changes the speed. You have to try not to hit the trees. Collision detection is based on x-coords. It needs compiling to an EXE to get a decent speed. Don't expect DirectX quality but I think its fun! The Zip file is 54 KB.
NASM Editor, assembler & Tutorial by Robert Rayment. (Version 3.4) 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.
Simple reader for kjv.ini by Robert Rayment. This may be of interest to those who want a simple but effective way of displaying large text files using simple VB. You will need to download Clint LaFever's kjv.ini (KJV BIBLE on PSC, I have his permission) and put it in the same folder as this prog. Basically the whole of the file is loaded into a string (most computers nowadays, can cope with this size of file) and an offset table built up to the Book, Chapter and Verse. 3 list boxes then take Book description and Chapter & Verse numbers enabling any Book, Chapter and all its Verses to be displayed quickly in a multi-line, scrollable text box. UPGRADE for Jude which has only 1 chapter -- whoops.
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).
Semaphore & the International Flag Code by Robert Rayment. Enter any text and illustrate message using Semaphore or Ship flag codes. Learning aid. Straightforward code, easily embellished. (Zip 144 KB).
Layers Demo by Robert Rayment. (Update5 fileops correction) This started as a layers demo but grew a bit to include some effects and drawing tools. Individual pictures can be resized, clipped, lassoed, rotated have effects and drawn on and a merged picture can also have all these apart from lassoing and rotating. The transparency can be varied for each picture apart from the background...etc. Too many things to describe them all here so please read the Help. The screenshot was made with this prog but PSPro used to convert to jpeg. Difficult to be sure all bugs removed so comments welcome. (exe tested on WinXP) Win98, Zip 182 KB including some test pictures.
CodeScanMax(Update 6 Nov) by Robert Rayment. (Work around for forms with no code, addess some differences between Win98 & WinXP RichTB versions when setting Fonts & Coloring) .... This program is intended to give info on declarations and procedures used in a project. Also to display some items within procedures and a variety of unused items. To be most useful the exe can be placed on the Office toolbar or the Taskbar. It can then analyse the current project provided it is saved to disk. It is non-intrusive A second use is to copy/paste code from any other project while in the IDE. Please read limitations in the help file. I've deliberately left some unused junk in the program so you can see how it works straightaway. It's 'horses for courses' CodeScan suits me but try these others if you haven't already, they may be closer to what you want -- Code Fixer v2.2.9 Roger Gilchrist(Ulli) CodeId=53297 -- Deeplook v4.7 Dean Camera CodeId=54836 -- Code Statistics/.. v4.3 E O'Sullivan CodeID=39149 or later versions.-- Fast RTB Coloring Will Barden CodeId=39824.-- Back highlighting buggy CodeId=43509 (Tested on Win98 & WinXP, Zip 57KB).
APaint8 by Robert Rayment. (Update 12/5/04 improved View-stack & Browser) This is a 256 color palette painter able to work with single or multiple palettes. It works with 8bpp BMPs in byte arrays but other formats can be converted in a Browser, Strict control over the colors can thus be maintained. One use is for simple games' images where single byte rather the 3 or 4 byte colors can be used - generally easier to code and faster. So this is not intended for large pictures of photographic quality but nevertheless can produce a huge variety of acceptable images. Features: 15 level undo/redo viewable, manipuable stack; dozens of drawing tools, filters, deformers and adders; several default palettes and a palette maker; rectangular, circular, elliptical and lasso selections. Many effects can work on the whole picture or on a selection including saving as 8bpp BMPs or GIFs and printing. Most shapes can be drawn with the mouse or keys. Too many other features to mention them all so please read the Help. The Browser contains a color sorting and re-mapping function but I'm still working on a better color sorter - any offers? Bug reports welcome. Best screen res 1024x768 or higher. Compile. (Tested on Win98 & XP) Zip 268 KB.