Advertisement

Results for "Author: robert rayment"

7_2009-2012 #222326
Basic Sprite Demo

Basic Sprite Demo by Robert Rayment. I used this to check the extractions from Region Selector (CodeId=64090). Might be instructive to a beginner. Since all the picture boxes are Autosize = True any images, masks & background picture can be loaded in when in the IDE. However, makes use of the VBSpeed timing class which allows smoother time steps than the VB Timer. Zip 174KB.

7_2009-2012 #222327
Digital Image Subtraction or Addition (16th Mar. Correction to Save result)

Digital Image Subtraction or Addition by Robert Rayment. (16th Mar. Correction to Save result) Combines two images by subtraction (Minus or Xor) or addition ( Whole Image or Edge Transparency). Subtraction only shows the difference bewteen two images and addition combines the images. The first image forms the base and the second, size equal or smaller than the base, takes the effects. Hand-scrolling is used rather than scrollbars, where the display is from a windowed array. Results can be saved as a bmp. Can run with Basic or MMX machine code. The machine code is held in a res file and the asm file included for reference. Couple of images included. CodeId=58968 has some subtraction images. dreamVB frames are used (CodeId=58966). Please see menu item Info. In particular the screen res needs to be >= 1024x768. Zip 189 KB.

7_2009-2012 #222328
Grey Options

Grey Options by Robert Rayment. Shows 8 different ways of changing an image to grey scale/effects (See code for descriptions). (Update BGR for RGB)(Zip 38 KB).

7_2009-2012 #222329
Simple 2D Room Planner

Simple 2D Room Planner by Robert Rayment. This basic room planner proved useful to a friend, so maybe for some of you. Note that the minimum screen resolution is 1280 x 768. Zip 29 KB.

7_2009-2012 #222330
Region Selector2

Region Selector2 by Robert Rayment. (Upgrade of Region Selector CodeId=60865). This allows a region to be drawn on any bmp, jpg or gif image in 8 different ways. This region can then be saved (bmp) on the same sized rectangle as the original or reduced to a rectangle containing just the region. Regions can be drawn over an area larger than that displayed by using the arrow keys, to operate the scroll bars, simultaneously with the mouse. So - useful for extracting images and making masks. Also included are ini recent files list and drag-drop onto input picture box or the exe. __________________________________________________ Upgrade. Region Selector2 now has Screen Capture and Selectable Surround Color for Extracted Shape. Zip 40 KB.

7_2009-2012 #222331
Desktop magnifier and Screen color picker (More additions 16 Apr)

Desktop Magnifier & Screen Color Picker by Robert Rayment: (Update7 16 Apr))(Added simple RGB color maker, saving Hex color to Clipboard and selectable from a button on the magnifier). Always on top, x2, x4,,,x32 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. Keys: S to save RGB to clipboard. Incorporated code by LaVolpe to see layered windows! __________________________________________________ Update: Moved all controls onto picture box & made the form same size as picture box. Accomodate the 120 dpi as well as the normal 96 dpi. __________________________________________________ Update2: All on one Form. With Color Maker, added click on screen to set Scrollbars. Mag +- button 2,4,8,16,32. Move one pixel with arrow keys. Esc also to Exit. Toggle Color Maker. Added Matthew's border UC(CodeId 64572). __________________________________________________ Update3: All suggestions included, in particular black dot can be toggled black/white so visible on any background. Zip 19 KB. __________________________________________________ Update4: Simplified. Tidy up exitting. Zip 11 KB. __________________________________________________ Update5: Added Hide Icons from Augustin Rodriguez's 'Virtual Aquarium' CodeId=64997). __________________________________________________ Update6: Adjusted RGB picker for 120 DPI. Anyone know a general routine for this? __________________________________________________ Update7: Added Color pad (5 x 47773 colors) & Clipboard View. Zip 21 KB.

7_2009-2012 #222332
RRChess(Updated)

~RRChess~ by Robert Rayment. Program to solve checkmate problems and play chess games with another person or against the computer. The chess engine is not very strong, only operating at 4 or 5-ply, so you should be able to win fairly easily but it might surprise you at times. Making such a program bug-free I found quite difficult. So far as I can tell, all the legal moves, castling rules, en passant, promotion etc are OK. There are WAV sounds in the resource file for CHECK, CHECKMATE etc. Games and positions can be saved and loaded. See Help for more info. in particular the section on Starting a game. (Zip 500 KB). __________________________________________________ Update: to allow computer to play on, if is it's turn, when move list is double-clicked. Code cleaned up a bit from CodeFixer. __________________________________________________ Update2: added a couple of extra color schemes. These can be changed in Sub cmdColorSchemes. __________________________________________________ Update3: fixed bug on sound skipping. __________________________________________________ Update4: correction to playback when computer given odds - so many subtleties! __________________________________________________ Update5: some typos and menu re-arrangement.

7_2009-2012 #222333
BigNum Calculator(Correction 1 Jul 2007))

BigNum Calculator by Robert Rayment. Does calculations on, up to, 1024 bit numbers (~310 dec & 256 hex digits). Operations on single numbers include shift left/right, roll left/right, Not, Factorial, Squared & Cubed. On two numbers - And, Or, Xor, Eqv, Imp, Div/Mod, Mul, Sub & Add. The full results can be displayed and saved to the clipboard or a file. All calculations are for positive integers only. Make sure to compile the program, particularly for large numbers. Machine code is used for some conversions to speed things up by a few seconds since they take much longer than calculations, principally for 4 digit factorials. For small numbers this has some educational value but very large numbers are just a curiosity, though apparently there is some use in encryption. Zip 27 KB. __________________________________________________ Update: Added view clipboard. __________________________________________________ Update2: Added permutations & combination. Div correction. __________________________________________________ Update3: Minor re-arrangements. __________________________________________________ Update 1st July 2007: Correct FullIntDivision routine.

7_2009-2012 #222334
Wavettes(Update 31 May))

~Wavettes~ by Robert Rayment. Designer for short WAVs using some maths formulae and a range of settings. Screenshot shows the settings. There are 3 dozen Presets (from the millions) to show the idea. These can be added to, from the program, and are saved in Presets.txt in the same folder. So can be easily editted with Notepad or whatever. WAVs can be saved as 8 or 16 bit mono, though there is usually not much difference. Some code is adapted from Ulli's prog at (CodeId=64845) and a UC container from Eric Madison at (CodeId=40130) is used. Making noisy WAVs is not to everyones's taste but I found it quite amusing and perhaps some of you will too! Zip 164 KB. __________________________________________________ Update (4th May) Compiles now with no advanced optimization. Seems to avoid a crash when exitting the exe on at least one system. One report I've had suggests that 'buzz' on headphones might be due to a Windows setting for volume or audio properties. __________________________________________________ Update (10th may) Behaviour of Play button modified to act more like normal button & some typos. __________________________________________________ Update (29th May) Replaced Play button with normal button. __________________________________________________ (31st May) Carles spotted an article in vbaccelerator.com which explains the real reason for 'crashes at shutdown' for some PCs when using XP themes with VB6. The URL is rather long so go to vbaccelerator.com, select VB section and search 'crashes at shutdown'. I haven't modified this code but you can try it if you want to. Otherwise simply delete the manifest file. __________________________________________________ Update (31st May) VBAccelerator code (see above) now included.

7_2009-2012 #222335
mini-Image Processor (Update 13 Aug)

mini-Image Processor by Robert Rayment. Demo of one way to load a standard picture into an array using GetDIBits, where the picture box is just a viewport, with zooming (using StretchDIBits) and scrolling. Pictures can be saved as 24bpp BMP or JPEG, either from the viewport, the whole image from the array or a selection. To make it a bit more interesting I've added a few effects to play with. If the manifest file causes problems then just rename or delete it. Only tested on WinXP. Zip 29 KB. __________________________________________________ Update 3 Aug: Pictures with width or height < 15 pixels were disallowed, now changed to <= 2 pixels. Consequently a correction to FileOps, the Flute filter and scrZoom. __________________________________________________ Update 4 Aug: Added saving to JPEG using the Ron van Tilburg (John Korejwa) class at CodeId=50351. Zip 49 KB. __________________________________________________ Update 5 Aug: Minor correction to vertical scrollbar position when zooming in with the horizontal cross-wire at the bottom of the picture. Also turn Select OFF when a scrollbar switches off. __________________________________________________ Update 10 Aug: LoadPicture Function simplified a bit. __________________________________________________ Update 11 Aug: Moved vertical scroll bar to normal position on the right of the viewport. Also New pictures now open at top-left instead of at bottom-left. Correction to edging for SmoothSharp effect. Option to change filter effects to continuous or stepped. Plus some minor tidying up. Zip 51 KB. __________________________________________________ Update 12 Aug: Buttons above the filter scrollbars will now act on the scrollbar value without having to press the scrollbars, in continuous or stepped mode. __________________________________________________ Update 13 Aug: Added routine to cJpeg.cls to save jpeg from data array, with Ron van Tilburg's help. Plus a few minor adjustments. Forgot to put manifest file in.

7_2009-2012 #222336
Paper Trace (Update 17 Aug)

Paper Trace by Robert Rayment. This consists of an image sheet (Loaded image), a translucent tracing sheet(Faded image to draw on) and a white paper sheet (The actual tracing that can be saved as a 2 color(B/W) BMP). The screenshot explains more. To show the method I've kept it simple in that large pictures are scaled down, avoiding scrollng code. Zip 36 KB. __________________________________________________ Update 10 Aug: LoadPicture Function simplified a bit. __________________________________________________ Update 14 Aug: Removed XOR wipeout in finished drawing by saving draw coords. Corrected a FreeDraw error. __________________________________________________ Update 17 Aug: Varying transparency does not now lose the drawing.

7_2009-2012 #222337
Plasma Play

Plasma Play by Robert Rayment. Just playing with plasmas & palettes, if you like that kind of thing. Only tested on WinXP, should be OK elsewhere. If you have trouble with the manifest file then rename or delete it. Zip 60KB.

7_2009-2012 #222338
Color Selector(Final 15 July)

Color Selector by Robert Rayment. Select a color from a list of 140 named colors or from an RGB gradient display. Color info to clipboard. Form location in ini file. Color names from www.learningwebdesign.com/colornames.html. Addition 12 July: Added, by request, spectrally sorted colors (empirical).... Change 13 July: Better Darker/Brighter action.... Additions 15 July: Added system color dialog & closest web-safe colors. Apart from any mistakes this is surely now finished! See Form1 for all updates. Zip 18 KB.

7_2009-2012 #222339
Linear Transforms 2 (Update 25 Jan 08)

Linear Transforms by Robert Rayment... Shows mapping a rectangular image onto a quadrilateral, circle, cylinder, cone and a sphere... This is re-worked from an old program of mine to speed it up and make more re-useable... Note that for the cylinder, cone and the sphere the image is only partly wrapped around... Five images are included... Only tested on Win XP... (Update 23 Jan 08)... Some redundant maths lines removed...(Update 25 Jan 08)... Simplified CommonDialog info and indicated where color bytes could be manipulated...Zip 185 KB.

7_2009-2012 #222340
Tiny GFX32 (Update 25JUL2012)

TinyGFX32 by Robert Rayment. (Update 25Jul2012.. 1. Avoid rare RTE for miss-match when Extracting some non-standard icons...2. Added new shade Tool. See TinyGFXUpdate.txt for other changes)....Program to make small bitmaps, icons and cursors - 1 x 1 to 64 x 64.... NOTE if the tinygfx.chm help file doesn't work with the program, open it on it's own, uncheck the security button and open.

7_2009-2012 #222341
Demo of 32bpp bitmap

Demo of 32bpp bitmap by Robert Rayment. Simple demonstration of manipulating a 32bpp BMP file. Zip 83 KB.

7_2009-2012 #222342
Particle Effects Demo(Update 10Jun08)

Particle Effects Demo by Robert Rayment (Update 10Jun08). Demonstration of a particle engine with various effects. Note that the green and white particle emitter can be moved around with the mouse. Also any pictures opened are auto-sized to a fixed display size... Update 10 Jun: Minor update to Sound ON/OFF caption which was reversed. Zip 135 Kb.

7_2009-2012 #222343
EarthWaterFireAirLight

Elemental NASM.(UPDATE Now works on Win2000 and Probably WinNT) The zip file is ~ 26KB

7_2009-2012 #222344
A386 machine code collection

A386 machine code collection by Robert Rayment. 1. Simple examples 2. Fractals. 3. PicBox1 4. PicBox2. All using the A386 assembler. Win 98, Zip 173 KB

7_2009-2012 #222345
Creating & Testing DLL with NASM

Creating & testing an assembler DLL using NASM, a freeware assembler. The demonstration DLL does Bit testing, shifting, rotating, clearing & setting.

Languages
Top Categories
Global Discovery